Article ID: 00192
Rating: 0.0 / 5.0 (0 votes)
Views: 901
Created: Feb-2-2007
Rating: 0.0 / 5.0 (0 votes)
Views: 901
Created: Feb-2-2007
How to reload a fastcgi process
Issue
How do I reload a fastcgi process if I'm using using python/django or Ruby On Rails?
Solution
If you change the code of your site, to make apache re-load your django application, you do not need to restart the server. Simply re-upload or edit your ``mysite.fcgi`` stub in such a way that the timestamp on the file will change. When apache sees that the file has been updated, it will restart your fastcgi application for you.
If you have access to a command shell on a unix system, restarting the server can be done with the ``touch`` command::
touch mysite.fcgi
If you have access to a command shell on a unix system, restarting the server can be done with the ``touch`` command::
touch mysite.fcgi
