[Backgroundrb-devel] How to know the environment (development/test/production) inside a worker

Sarat Kongara saratkongara at gmail.com
Thu May 29 06:05:23 EDT 2008

Hi Ryan,For some reason even when the I start backgroundrb like this $
script/server -e production start
The RAILS_ENV is set to development. Any suggestions on how to fix this
issue. Thanks.


On 5/22/08, Ryan Leavengood <leavengood at gmail.com> wrote:
> On 5/21/08, Sarat Kongara <saratkongara at gmail.com> wrote:
> >
> > I am not sure how to figure out the environment with which the
> backgroundRb
> > is started from inside a worker task. Any help is appreciated. Thanks for
> > your time.
> ENV["RAILS_ENV"] is defined properly inside the workers.
> Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080529/4bae61fa/attachment.html>

More information about the Backgroundrb-devel mailing list