Apache/FCGI Rails - is apache restart required on DB change?


#1

Hi all,

wondering when I need to restart apache. I’m setting up a rails system
for the first time, and it seems to be caching my database
configuration, unless I restart apache.

Is there any way out of this? Is there a way to do this without
restarting apache?

Thanks in advance!

Cameron


#2

I think your environment and db details are cached even in dev mode,
so you would either need to restart apache or at least kill all the
dispatch.fcgi processes.

There are some good pointers here:
http://weblog.textdrive.com/article/175/rails-optimizing-resource-usage

…pointers that I would have done well to have read before the last 2
months on my project :slight_smile:

dorian


#3

Dorian, thanks very much. Good to know, and the article’s a great help.