1 Star 2 Fork 0

freewu / openstreetmap-website

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
VAGRANT.md 1.90 KB
一键复制 编辑 原始数据 按行查看 历史

Installing Vagrant

On Ubuntu, it should be as simple as:

sudo apt-get install vagrant

Other Linux distributions should have similar installation instructions using dnf, pacman, or similar.

Installers are available for Mac OS X and Windows, please see the Vagrant project download page for more information.

Note than until there are suitable xenial64 vagrant boxes for other providers, the only virtualization provider supported is virtualbox. You might need to install it and specify --provider virtualbox when setting up your environment.

Setting up openstreetmap-website

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

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

To access the web pages you run the following commands then access the site in your local browser:

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 for more information.

1
https://gitee.com/free1234566789/openstreetmap-website.git
git@gitee.com:free1234566789/openstreetmap-website.git
free1234566789
openstreetmap-website
openstreetmap-website
master

搜索帮助