The environment provided in config/backgroundrb.yml is not replaced into the RAILS_ENV constant until
BackgrounDRb::MasterProxy.new is called in script/backgroundrb unless you put RAILS_ENV=production on the command line
given to the start/stop commands.
This is with r324 from the SVN repository, but I see the same in the git mainline repo. The RAILS_ENV should be set
to the value in config/backgroundrb.yml directly after the parse_cmd_options call. That way, config/environment.rb will
be loaded with the correct value present. |