Reloading dispatch.fcgi
Rails development is usually done using dispatch.cgi so changes are readily apparent. However dispatch.cgi is painfully slow for a production environment so it only makes sense to use dispatch.fcgi. You can check which you’re using by looking into your /public/.htaccess file. In this case I’m running dispatch.cgi and .fcgi is commented out:
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
#RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
Problem is dispatch.fcgi won’t immediately recognize changes made to content. In order to force a flush of all dispatch.fcgi instances we could kill all the processes but this seems better to me:
[chris@enki ticklist]$ touch public/dispatch.fcgi
