X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b460deaead10e238a375bdcd4cc0dcbfeb9da539..c302174b0c532ded0eb7a808ba4556a67b96a111:/VAGRANT.md diff --git a/VAGRANT.md b/VAGRANT.md index 03861e18f..549e06687 100644 --- a/VAGRANT.md +++ b/VAGRANT.md @@ -8,13 +8,15 @@ sudo apt-get install vagrant Other Linux distributions should have similar installation instructions using `yum` or similar. -Installers are available for Mac OS X and Windows, please see the [Vagrant project download page](http://www.vagrantup.com/downloads) for more information. +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. # Setting up openstreetmap-website -Once Vagrant has been installed, you can start an environment by changing to the directory which contains the Vagrantfile and typing: +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: ``` +git clone git@github.com:openstreetmap/openstreetmap-website.git +cd openstreetmap-website vagrant up ``` @@ -31,4 +33,14 @@ cd /srv/openstreetmap-website/ rake test ``` +To access the web pages you run the following commands then access the site in your [local browser](http://localhost:3000): + +``` +vagrant ssh +cd /srv/openstreetmap-website/ +rails server --binding=0.0.0.0 +``` + +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. + 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.