[Backgroundrb-devel] Deploying with capistrano issue. Resolution !
Jerrod Blavos
jerrod at indierockmedia.com
Mon Feb 5 15:12:58 EST 2007
ok, i was wrong. the failure on deployment using capistrano is 100%
using these commands
## Our Handlers
desc "Restart BackgrounDrb"
task :restart_uploader, :roles => :app do
run "#{current_path}/script/backgroundrb stop"
run "#{current_path}/script/backgroundrb start"
end
here is the console post deploy on the remote server
########
[current]$ script/backgroundrb console
irb: warn: can't alias jobs from irb_jobs.
irb(#<BackgrounDRb::MiddleMan:0xb7b74088>):001:0> loaded_worker_classes
=> []
irb(#<BackgrounDRb::MiddleMan:0xb7b74088>):002:0> exit
Now ill stop it and start it again on the remote server
########
[current]$ script/backgroundrb stop
[current]$ script/backgroundrb start
[current]$ script/backgroundrb console
irb: warn: can't alias jobs from irb_jobs.
irb(#<BackgrounDRb::MiddleMan:0xb7c13ed0>):001:0> 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 --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070205/44e360df/attachment-0001.html
More information about the Backgroundrb-devel
mailing list