[Backgroundrb-devel] Different environments in backgroudrb.yml
gethemant at gmail.com
Tue Jan 8 12:57:40 EST 2008
Oh No, that won't work out, for running BackgrounDRb itself, you must
have proper entry in backgroundrb.yml file.
So, I will suggest you to have different files for development and
production environment and keep backgroundrb.yml file out of SVN. A cap
task can copy backgroundrb.yml.production to backgroundrb.yml when
deploying on machines.
On Tue, 2008-01-08 at 18:49 +0100, Raimond Garcia wrote:
> Cool, what about development and production environments? should I
> just not include the environment definition in backgroundrb.yml, and
> simply start the servers using the appropriate environment each time?
> for example
> RAILS_ENV=development ./script/backgroundrb start
> RAILS_ENV=production ./script/backgroundrb start
> On Jan 8, 2008, at 6:15 PM, hemant kumar wrote:
> > Hi
> > On Tue, 2008-01-08 at 17:43 +0100, Raimond Garcia wrote:
> >> Hi,
> >> Got everything setup nicely with backgroundrb for the development
> >> environment and running tests with rspec. However, I have to keep
> >> editing the backgroundrb.yml file, to switch between development and
> >> testing environment. How can I declare a development, testing and
> >> production environment in backgroundrb.yml?
> >> Thanks in advance
> > in your bdrb_test_helper.rb file put:
> > RAILS_ENV = 'test' at top and you are set.
More information about the Backgroundrb-devel