I have never worked for a company that deploys a Django application (with a large user base), and I am wondering if this is the best way to do this.
I am currently hosting a Django application on EC2. The code for the application is in my github account. I have nginx serving static content, and behind it is one Apache server running django + mod_wsgi.
I am trying to figure out what is best for continuous deployment. Right now, after adding extra features, I am doing the following on EC2:
1) git reset HEAD --hard
2) git pull
3) restart apache
4) restart nginx
I have custom logic in the settings.py file, so if I run on EC2, debug gets False, and my databases switch from sqlite3 (development) to mysql (production).
This seems to work for me now, but I wonder what is wrong with this process and how I can improve it.
thanks
django amazon-s3 amazon-web-services amazon-ec2
josephmisiti
source share