[Backgroundrb-devel] How to know the environment (development/test/production) inside a worker - FIXED
saratkongara at gmail.com
Thu May 29 08:06:17 EDT 2008
Hi Guys,Looks like I have to do this in backgroundrb.yml
:port: 11008 # use port 11008
That is, have an entry for "environment: production" under :production:,
This seems to have fixed the issue.
On 5/29/08, Sarat Kongara <saratkongara at gmail.com> wrote:
> 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
>> > is started from inside a worker task. Any help is appreciated. Thanks
>> > your time.
>> ENV["RAILS_ENV"] is defined properly inside the workers.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel