Displaying 6 results from an estimated 6 matches for "restart_backgroundrb".
2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~
I am using the Capistrano recipe outlined in this post to restart my
backgroundrb server:
http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html
My Version:
~~~~~~~~~~~~
task :before_restart, :roles => :app do
restart_backgroundrb
end
task :start_backgroundrb, :roles => :app do
sudo "nohup
/var/www/rails/#{application}/current/script/backgroundrb/start "
end
task :stop_backgroundrb, :roles => :app do
sudo "kill -9 `cat
/var/www/rails/#{application}/current/log/backgroundrb.pid` 2>/dev/null;
tr...
2007 Feb 05
3
Deploying to production with backgroundrb (capistrano)
I have noticed that occasionally (about 50% of the time) when i
deploy (using capistrano) my app to a production server, i have to
ssh into the box and manually
stop and start backgroundrb to get it to load my workers.
this is my basic setup
i have 2 workers:
lib/workers/mp3_worker.rb => takes a hash of params to downsample an
mp3
lib/workers/flv_worker.rb => takes a has of
2008 Mar 28
5
Upgrading from older version - how?
Hi there,
We''ve been using previous version of bdrb (drb based one) for a while
and it was running relatively OK. We recently attempted to upgrade to
the new version to keep up / use supported version but we ended up
reverting to the older version.
Here are the things that moved us to revert :
1) With the workers we never manage to pass this error:
''''
You have a nil
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...generation, I got a "Could not connect to
the BackgrounDRb server" error.
Initially, when I didn''t start the BDRb server manually, I got:
* executing `after_update_code''
* executing `set_env_staging''
ENV[''RAILS_ENV''] = staging
* executing `restart_backgroundrb''
* executing `stop_backgroundrb''
* executing "cd /var/www/apps/my_app/releases/20080501133415 && ./
script/backgroundrb -e staging stop"
servers: ["staging.my_app.com"]
[staging.my_app.com] executing command
** [out :: staging.my_app.com] ./script/...
2006 Aug 24
5
Unable to start with Capistrano...
I''ve created a couple of tasks in my deploy.rb file for starting and
stopping backgroundrb on the remote server. The stop task runs fine
and kills the process. And the start task *seems* to run successfully,
but backgroundrb is never started on the remote host.
Has anyone had success with this? Here are my deploy tasks:
desc ''Start backgroundrb server (default
2007 Feb 05
1
Deploying with capistrano issue. Resolution !
...loaded_worker_classes
=> ["Mp3Worker", "FlvWorker"]
i DID find however that the following worked. seems i HAVE to be in
the current directory in order for it to start properly. maybe this
will help in tracking down the issue?
desc "Restart BackgrounDrb"
task :restart_backgroundrb, :roles => :app do
run "cd #{current_path} && script/backgroundrb stop"
run "cd #{current_path} && script/backgroundrb start"
end
Jerrod Blavos
ph. 919.341.0143
fx. 482.492.5009
jerrod at indierockmedia.com
-------------- next part --------------...