I discovered when I dropped from my production environment my "dev"
database that background rb keeps starting using Development!
This is what my Vlad rake task looks like:
remote_task :start_app, :roles => :app do
run "cd #{current_path}; ./script/backgroundrb start -e production"
end
I noticed also I kept having a development.log file created, so I
hacked around a bit and discovered that I can never get backgroundrb
to start with in anything but "development" mode.
I added some debugging to bdrb_config.rb and can confirm that
"production" is what is being passed in... And my main Mongrel
processes are all running in "production" mode as well.. Just not
sure how the backgroundrb isn't getting the production setting!
On Mar 6, 2008, at 2:51 AM, hemant kumar wrote:
>
> On Wed, 2008-03-05 at 07:53 +0100, Alex Peuchert wrote:
>> Eric Pugh wrote:
>>> I've been playing around with Vlad the deployer, and quite like it.
>>> However, has anyone used it to stop/start background rb processes
>>> via
>>> the ./script/backgroundrb script?
>>>
>>> Eric
>>>
>>> -----------------------------------------------------
>>> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467
>>> | http://www.opensourceconnections.com
>>>
>>>
>>>
>>> _______________________________________________
>>> Backgroundrb-devel mailing list
>>> [email protected]
>>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>>
>>>
>> Hi Eric, I use vlad and have the following in my deploy.rb file:
>>
>> namespace :vlad do
>> desc "Restart the backgroundrb server"
>> remote_task :start_app, :roles => :app do
>> run "cd #{current_path}; ./script/backgroundrb start -e
>> #{RAILS_ENV}"
>> end
>>
>> desc "Stop the backgroundrb server"
>> remote_task :stop_app, :roles => :app do
>> run "cd #{current_path}; ./script/backgroundrb stop"
>> end
>> end
>>
>
> Neat,
>
> I use capistrano. But alex, can you update documentation with this bit
> of information?
>
>
-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 |
http://www.opensourceconnections.com
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel