3 On Ubuntu, it should be as simple as:
6 sudo apt-get install vagrant
9 Other Linux distributions should have similar installation instructions using `yum` or similar.
11 Installers are available for Mac OS X and Windows, please see the [Vagrant project download page](http://www.vagrantup.com/downloads.html) for more information.
13 # Setting up openstreetmap-website
15 Once Vagrant has been installed, you can start an environment by checking out the openstreetmap-website code if you haven't already, then changing to the directory which contains the Vagrantfile by typing:
18 git clone git@github.com:openstreetmap/openstreetmap-website.git
19 cd openstreetmap-website
23 This will take a few minutes to download required software from the internet and set it up as a running system. Once it is complete, you should be able to log into the running VM by typing:
29 Within this login shell, you can do development, run the server or the tests. For example, to run the tests:
32 cd /srv/openstreetmap-website/
36 To access the web pages you run the following commands then access the site in your [local browser](http://localhost:3000):
40 cd /srv/openstreetmap-website/
41 rails server --binding=0.0.0.0
44 You edit the code on your computer using the code editor you are used to using, then through shared folders the code is updated on the VM instantly.
46 You should run the tests before submitting any patch or Pull Request back to the original repository. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information.