Sarat Kongara
2008-May-29 12:06 UTC
[Backgroundrb-devel] How to know the environment (development/test/production) inside a worker - FIXED
Hi Guys,Looks like I have to do this in backgroundrb.yml :backgroundrb: :ip: 0.0.0.0 :production: :backgroundrb: :port: 11008 # use port 11008 :environment: production That is, have an entry for "environment: production" under :production:, This seems to have fixed the issue. Regards Sarat 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. > > Regards > Sarat > > > > 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/a9ce8b09/attachment.html>