From 0d7f749ad8157dc26cb503a90fe95f67159ef032 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Tue, 18 Aug 2015 19:14:50 -0700 Subject: [PATCH] Run provision.py as a provisioner. This way, vagrant up for the first time will set up the developer's VM correctly (imported from commit cee17b15e2f53a1b6de1f1ee16dbad00071ba55c) --- README.dev | 21 ++------------------- Vagrantfile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 19 deletions(-) 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 = <