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

Sarat Kongara saratkongara at gmail.com
Wed May 21 00:37:30 EDT 2008

Hi Guys,You can start backgroundRb in different environments using -e

./script/backgroundrb -e production

I like to run a rake task from my worker - something like rake
RAILS_ENV=proper_environment thinking_sphinx:start

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080521/942a121b/attachment.html>

More information about the Backgroundrb-devel mailing list