Fabric2-based utils for
- Python 3.6
- Django
- nginx
- gunicorn
- letsencrypt.org HTTPS
site deploy to a Ubuntu 16.04 VPS.
- Python3+
- Fabric 2.3.1+
- run
cd django-project-repository
git submodule add git@github.com:tipishev/deploy.git
- copy
EXAMPLE_fabric.yaml
tofabric.yaml
- change deploy settings in
fabric.yaml
- initial fresh server setup
fab -H root@example.com root-init
fab -H user@example.com init
- subsequent deploys
fab -H user@example.com deploy
TODO rename commands to make explanation redundant
log
show Django application logbackup-https
save https settings on the local hostrenew-https
renew https certificaterestore-https
setup-secrets