-
Place app in
./app
-
Create Heroku-style
./app/Procfile
-
Create
ansible/local.yaml
and customize it based onansbile/default.yaml
-
Install Vagrant and https://github.com/cogitatio/vagrant-hostsupdater
-
Run vagrant up
-
Inside the vagrant box:
a. Place Heroku-style environ file at /srv/app/conf/environ
b. Install requirements in the virtual env: sudo -u django /srv/app/env/bin/pip install -r /srv/app/releases/current/requirements.txt
b. Run sudo systemctl restart app
- Go to http://django.local/