Base Flask project using Vagrant and Ansible to configure a VM
- VirtualBox
- Ansible
-
Clone this repo
-
Run this command:
vagrant up -
Connect to server with this command:
vagrant ssh -
After SSH'ing to server, enable project's virtual env:
source /srv/venv/base-project/bin/activate -
Run Flask project:
cd /vagrant python app.py -
Connect to application by browsing to this address: http://localhost:8000
The directory where Vagrantfile is located will be linked to the /vagrant directory inside the VM. Modifications to the files in these linked directories will be visible from inside and outside of the VM.