Given that neither httpd, fcgi or ruby run as the user on shared hosting, how can we get fastcgi to "restart" in order to read changes in the application configuration? e.g. change between development and production modes.
Reading up on the topic, on other shared hosts you can either touch dispatch.fcgi or you have control of the fcgi process. Neither of these work on eukhost.
Also, oddly, removing disptach.fcgi results in a 403 forbidden error. Editing it to add rubbish does not result in an error, leading me to believe it's cached somewhere. Edit: Of course it cached!.. By the ruby process.
The only way I've found to change the app config is to copy disptach.fcgi to dispatch1.fcgi and edit the htaccess file to refer to this file instead. This however results in two ruby processes - one with dispatch.fcgi and one with dispatch1.fcgi - so this is not a good workaround at all.
Last edited by brighter; 16-04-2008 at 14:09.
|