Displaying 2 results from an estimated 2 matches for "preqreq".
Did you mean:
prereq
2006 Oct 14
1
Setting environment
Not sure this is known behaviour but it seems that if want to set the
environment to, for example, test, and you want to use Active Record you
have to both explicitly set the RAILS_ENV and the BackgrounDRb environment.
So, if you have a config file backgroundrb_test.yml (as well as the
default) and set the environment to test in that, this is what *seems*
to happen:
$
2007 May 04
1
Setting environment
..."log/brb-#{ENV[''RAILS_ENV'']}.pid" %>
> ...
>
> Obviously, I had to hack BRB to use these settings, modify the
> start/stop
> scripts to take an --env argument, and add Rake tasks to (re)start
> the test
> instance. Add that restart task as a preqreq of ''test'', and the
> BRB test
> instance will restart (and reload) before each test run.
>
> If interested, I can provide diffs ...
>
> -- Steve
Steve, I''m interested in the diffs. I''d like to the same thing.
Nate Murray
http://pasadenarb.co...