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

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!


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:

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


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs