Builds a python development VM using vagrant and ansible.
This was mostly put together to learn more about devops and automated deployment. The following articles were very useful:
- Flask/WSGI Application Deployment with Ubuntu, Ansible, Nginx, Supervisor and uWSGI
- Serving Flask With Nginx
In theory, this is how you get it up and running:
- Install VirtualBox
- Install Vagrant
- Install Ansible. I'd recommend doing it via
pip
- Clone this repo into a directory of your choosing
- In that directory, do
vagrant up
- In that same directory, do
./ansible_bootstrap.sh
- Navigate to http://192.168.33.88. You should see "Hello World!"
- I developed this on an OS X host. YMMV. No idea how it would work on a Windows host.
- Still running Vagrant 1.0.x here for work reasons, so I don't know how well the Vagrantfile will work with newer versions.