Displaying 6 results from an estimated 6 matches for "start_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...
2006 Aug 24
5
Unable to start with Capistrano...
...mote 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 values)''
task :start_backgroundrb do
puts "Starting BackgrounDRb"
#--- assumes the backgroundrb.yml is set up for production
run "export RAILS_ENV=production &&
#{current_path}/script/backgroundrb/start -d"
end
desc ''Stop backgroundrb server (default values)''
task :stop_backgroun...
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 Jan 03
5
Start script not working when run via Rake
Hi there
I''m using the latest release (r300) and ''script/backgroundrb start'' works
perfectly when executed on the server, but when put inside a Rake task, it
doesn''t launch the worker processes.
The Rake task is as follows:
task :start_backgroundrb do
run "cd #{current_path} && ./script/backgroundrb start"
end
When I run this task, the following files are created in the log directory:
backgroundrb.pid
backgroundrb_debug.log
backgroundrb_server.log
Observations: The process ID found in backgroundrb.pid doesn''t...
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...eneration, 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/...