Skip to content
Maikel edited this page Sep 30, 2015 · 13 revisions

Vagrant can be used for testing the provisioning and deployment processes locally.

Setup

If you don't already have an Ubuntu Precise 64 box set up, run:

vagrant box add precise64 https://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box

Building the Vagrant server

Create a virtual machine and run the install playbook on it with one command:

vagrant up

After that, you should be done with installing Open Food Network on a local virtual machine. But if anything goes wrong and you need to rerun the provisioning process multiple times, the Vagrant box will still be running, so use vagrant provision instead of vagrant up. And if the provisioning finished, but you need to rerun the deployment:

ansible-playbook deploy.yml -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \
    -u vagrant --private-key=~/.vagrant.d/insecure_private_key

If everything was successful, you can visit your site at http://localhost:8080/.

Continue with the Administration of your application server.

Clone this wiki locally