Added some docs for Vagrant usage.
It doesn't currently recomment using Vagrant - there are probably some bugs to work out in the process before we can do that.
This commit is contained in:
parent
f2d13c0756
commit
b460deaead
2 changed files with 37 additions and 2 deletions
|
@ -3,11 +3,12 @@
|
|||
These instructions are designed for setting up The Rails Port for development and testing.
|
||||
If you want to deploy the software for your own project, then see the notes at the end.
|
||||
|
||||
You can install the software directly on your machine, which is the traditional and probably best-bupported approach. However, there is an alternative which may be easier: Vagrant. This installs the software into a virtual machine, which makes it easier to get a consistent development environment and may avoid installation difficulties. For Vagrant instructions, see [VAGRANT.md](VAGRANT.md).
|
||||
|
||||
These instructions are based on Ubuntu 12.04 LTS, which is the platform used by the OSMF servers.
|
||||
The instructions also work, with only minor amendments, for all other current Ubuntu releases, Fedora and MacOSX
|
||||
|
||||
We don't recommend attempting to develop or deploy this software on Windows. If you need to use Windows, then
|
||||
try developing this sofware using Ubuntu in a virtual machine.
|
||||
We don't recommend attempting to develop or deploy this software on Windows. If you need to use Windows, then try developing this sofware using Ubuntu in a virtual machine, or use [Vagrant](VAGRANT.md).
|
||||
|
||||
## Dependencies
|
||||
|
||||
|
|
34
VAGRANT.md
Normal file
34
VAGRANT.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Installing Vagrant
|
||||
|
||||
On Ubuntu, it should be as simple as:
|
||||
|
||||
```
|
||||
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.
|
||||
|
||||
# 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:
|
||||
|
||||
```
|
||||
vagrant up
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```
|
||||
vagrant ssh
|
||||
```
|
||||
|
||||
Within this login shell, you can do development, run the server or the tests. For example, to run the tests:
|
||||
|
||||
```
|
||||
cd /srv/openstreetmap-website/
|
||||
rake test
|
||||
```
|
||||
|
||||
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.
|
Loading…
Add table
Add a link
Reference in a new issue