3.5 KiB
Developing on a remote machine
The Zulip developer environment works well on remote virtual machines. This can be a good alternative for those with poor network connectivity or who have limited storage/memory on their local machines.
We recommend giving Zulip dev its own virtual machine, running Ubuntu 14.04 or 16.04, with at least 2GB of memory. If Zulip dev will be the only thing running on the remote virtual machine, we recommend installing directly. Otherwise, we recommend the Vagrant method so you can easily uninstall if you need to.
Connecting to the remote environment
Set up your remote server and connect to it using SSH or Mosh. We recommend using Mosh as it is more reliable over slow network connections.
Setting up the development environment
After you have connected to your remote server, you need to install the development environment.
If Zulip dev will be the only thing running on the remote virtual machine, we recommend installing directly. Otherwise, we recommend the Vagrant method so you can easily uninstall if you need to.
Running the development server
Once you have set up the development environment, you can start up the development instance of zulip with the command
./tools/run-dev.py
This will start up zulip on port 9991. You can then navigate to http://<REMOTE_IP>:9991 and you should see something like (this screenshot of the Zulip dev environment).
You can port forward using ssh instead of running the dev env on an exposed interface.
For more information, see Using the development environment.
Editing code on the remote machine
You will need to either edit code locally on your computer and sync it to the remote development environment or just edit the zulip code base on the remote host.
Editing locally
If you want to edit code locally you can install your favorite text editor:
Next, set up git on your local machine and clone the zulip repository.
Once you have your code locally you will need to sync your changes to your development server:
Editing remotely
You will need to use a text editor on the remote machine:
Once you install an editor setup an ssh key on your host and clone the zulip repository.
Next steps
At this point you should read about developing and read about using the development environment.
