Dylan Markow
2008-Apr-02 14:30 UTC
[Backgroundrb-devel] Specifying environment in backgroundrb.yml
It seems that regardless of what environment I specify in my backgroundrb.yml file, it always uses development mode unless I pass "-e production" to the "script/backgroundrb start" command.>From looking at bdrb_config.rb, it looks like immediately afterloading the config file it assigns whatever was passed on the command line (which defaults to development if nothing is specified) to config[:backgroundrb][:environment] I can easily set up my deployment file to just run with the -e production line, but it seems misleading that the option is even available in the backgroundrb.yml file if it doesn''t affect anything.
hemant kumar
2008-Apr-02 23:35 UTC
[Backgroundrb-devel] Specifying environment in backgroundrb.yml
On Wed, 2008-04-02 at 07:30 -0700, Dylan Markow wrote:> It seems that regardless of what environment I specify in my > backgroundrb.yml file, it always uses development mode unless I pass > "-e production" to the "script/backgroundrb start" command. > > >From looking at bdrb_config.rb, it looks like immediately after > loading the config file it assigns whatever was passed on the command > line (which defaults to development if nothing is specified) to > config[:backgroundrb][:environment] > > I can easily set up my deployment file to just run with the -e > production line, but it seems misleading that the option is even > available in the backgroundrb.yml file if it doesn''t affect anything.Some regression has crept in. Can you file this as bug report? Also, if possible can you submit this bug report this appropriate testcase?