Bugs: Browse | Submit New | Admin

[#18815] Rails environment is not loaded early enough

Date:
2008-03-13 21:09
Priority:
3
Submitted By:
Dave Myron (orangechicken)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Rails environment is not loaded early enough

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item