[Backgroundrb-devel] Production RAILS_ENV / DB Selection
skaar
skaar at waste.org
Tue Nov 21 16:50:19 EST 2006
* Matt White (stockliasteroid at gmail.com) [061121 15:08]:
> And one more... Sorry for spamming the list, but I keep answering my own
> questions :)
>
> The problem seems to come from the fact that backgroundrb_server requires
> worker, which then in turn requires worker_rails, all before the config
> file is parsed, thus making it too early for Rails to load with the
> appropriate RAILS_ENV from the config file. So, I moved:
>
> unless BACKGROUNDRB_STANDALONE
> require 'backgroundrb/worker_rails'
> end
ok, thanks for going through the trouble. In trunk r159 worker_rails is
loaded in BackgrounDRb::Server#setup.
I'd be great next time if you can log the issue, so we can keep track of
things like this.
thanks again
/skaar
--
----------------------------------------------------------------------
|\|\ where in the | s_u_b_s_t_r_u_c_t_i_o_n
| | >=========== W.A.S.T.E. | genarratologies
|/|/ (_) is the wisdom | skaar at waste.org
----------------------------------------------------------------------
More information about the Backgroundrb-devel
mailing list