diff --git a/README.dev b/README.dev index 1a677819aa..a527d6cf59 100644 --- a/README.dev +++ b/README.dev @@ -6,29 +6,12 @@ Using Vagrant This is the recommended approach, and is tested on OS X 10.10 as well as Ubuntu 14.04. -If your host is OS X, download VirtualBox from . Then run: - vagrant up - vagrant ssh +If your host is OS X, download VirtualBox from . If your host is Ubuntu 14.04: sudo apt-get install vagrant lxc lxc-templates cgroup-lite redir - vagrant plugin install vagrant-lxc - vagrant up --provider=lxc - vagrant ssh -All versions, inside the container: - sudo apt-get update - sudo apt-get install python-pbs - cd /srv/zulip && python provision.py - -To run the development server: - vagrant ssh -- -L9991:localhost:9991 - # Now inside the container - cd /srv/zulip - source /srv/zulip-venv/bin/activate - ./tools/run-dev.py - -You can now visit in your browser. +Once that's done, simply run `vagrant up`. Congrats, you can now visit in your browser. By hand ------- diff --git a/Vagrantfile b/Vagrantfile index d2594b0fff..85769f8465 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -19,4 +19,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| vb.memory = 2048 end +$provision_script = <