/ Web Development

Article ID:  00192
Rating:  2.8 / 5.0 (59 votes)
Views:  4843
Created:  Feb-2-2007

Rating
Did you find this article helpful?


Print Article


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

Related Articles