Posts

Showing posts with the label Fabric

Deploy Django app with Fabric made easy

Here we go, The last time I deployed my Django app to a production server, I felt pain in the ass. I had to do all the same things repeatedly: copy the source code, create a virtualenv for my app, config nginx, supervisor... And then I found Fabric. Fabric help me do the pre-defined actions in a script file name fabfile.py . Follow the instructions of a tutorial (http://www.abidibo.net/blog/2012/06/29/deploy-django-applications-nginx-uwsgi-virtualenv-south-git-and-fabric-part-5/), I modified the fabfile to fit my needs. And here are the steps: