python - Django application deployment help -
I use Capistrano to deploy a Django app (it uses Nginx as the web server) I was going to see a cached version earlier today), and I was thinking about the final command there, which
dragon manage.py runfcgi host = 127.0.0.1 port = 8081 - -settings = Settings
At the higher level, I understand that this application is telling the application that we will be able to complete this application by using the Fastcgi Binary Want to run six instances.
Am I thinking that due to the lack of a good word this "resetting" is the best way. For those who do not know, Capitrano deploys things by creating a "release" directory and then providing a symlink for the latest release.
Since I can do post-deployment (I did this with KHHHP to make things like setting up directory permissions for caching directory in the application). I was thinking that How to stop existing processes created by the above given commands and start a new one.
I hope that I am doing the meaning.
one
Basically use the pidfile option to manage.py
#! / Bin something like this #! / Bin / bash if the [-p "pdfile"]; Then kill `cat - pidfile` rm -f - pidfile fi exec python manage.py runfcgi host = 127.0.0.1 ports = 8081 pidfile = pidfile --settings = settings
NB FASTCGI support dislikes and will be removed in Django 1.9
Comments
Post a Comment