In my app controller I require a file named “configuration.rb” in the
config directory like so
require “config/configuration”
This has been working perfectly fine in Rails 2 in all environments
including prod. Having migrated to Rails 3 this works in all
environments if I run “rails server” without the daemon option. If I
run the server with the daemon option (-d), I get the following error:
“no such file to load – config/configuration”
I have tried various things including changing the require to:
Thanks for your answer. The option of moving this source file
somewhere Rails 3 will find it is kind of a last resort for me.
In this case, it’s not a last resort. Config files (if they’re
automatically loaded) normally go in config/initializers; if you put it
elsewhere, that was probably a mistake. So fix the mistake.
What gets me with this issue is that without the daemon option this
works (the required file is found) whereas with the daemon option it
doesn’t work…