Skip to main content

quick solution to perform deploy a Django app using nginx and gunicorn

Project description

a quick solution to perform deploy a Django app using nginx and gunicorn

How to Use:

install the app in your enviroment:

$ pip install git+https://github.com/petry/fabric-recipes.git

create a git repository to your project with manage.py and requirements.txt on root folder download our fabfile.py:

$ wget https://raw.github.com/petry/fabric-recipes-example/master/fabfile.py

If you like, change some fabric variables such as env.user and env.password on fabfile.py

then, run the commands to deploy your app on your server:

$ fab deploy

and this command to check if everything is working

$ fab status

or

fork these example project with this structure :)

https://github.com/petry/fabric-recipes-example


NOTE ``` I tested this script using a virtual machine with ubuntu 12.04, feel free to create a version for your distribution of choice :)

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page