Note
Please note that several states include other states which are NOT part of this repository. I have left them available as examples that you can easily fill in, and some which you can omit. In addition this repository is a companion to demo-app-2.
Download and install VirtualBox and Vagrant. If you have old versions of either, you may need to upgrade to a newer version.
Download the .dmg from here: https://www.virtualbox.org/wiki/Downloads
Follow the instructions here: https://www.virtualbox.org/manual/ch02.html#idp52694656
https://docs.vagrantup.com/v2/installation/index.html
git clone https://github.com/gravyboat/demo-app-1.git cd demo-app-1
vagrant up
If this fails, you may need to visit the config.vm.box_url specified in the Vagrantfile to download the image. Once downloaded, move the image to a directory like ~/VM_boxes/, and add the image to vagrant:
vagrant box add <path-to-image> --name centos-min
vagrant ssh cd /home/vagrant/demo-app-1
At this point Nginx should be up and running and available at http://192.168.44.3. If you have not brought up demo-app-2 then you will receive a 502 Bad Gateway error.
Includes several other states which install and configure Nginx and other requirements.
Configures the demo-app-1 Nginx setup.