Skip to content

Instantly share code, notes, and snippets.

View davfigue's full-sized avatar
👾

David Figueroa davfigue

👾
View GitHub Profile
@davfigue
davfigue / fabfile.py
Last active June 28, 2019 04:25
Fabric deploy script for 'django + uwsgi + nginx'
#
# A fabric deploy script for a django project using uwsgi + nginx (is debian/ubuntu focused)
#
# The nginx virtual host conf and uwsgi.ini should reside in the project root:
# - virtual host conf filename should be: PROJECT_NAME_nginx.conf
# - uwsgi conf filename should be: uwsgi.ini
#
# The deployment is mercurial based, but the script requires little changes for using git
# deployment works as follow:
# $ fab (devel|staging|production) install_system_deps #only once