public
Last active — forked from mdolian/resque.rb

  • Download Gist
resque.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
namespace :resque do
desc "After deploy:restart we want to restart the workers"
task :restart, :roles => [:app], :only => {:resque => true} do
sudo "monit restart all -g resque_#{application}"
end
after "deploy:restart","resque:restart"
desc "After update_code we want to symlink the resque.yml"
task :symlink, :roles => [:app], :only => {:resque => true} do
run "if [ -f #{shared_path}/config/resque.yml ]; then ln -nfs #{shared_path}/config/resque.yml #{latest_release}/config/resque.yml; fi"
end
after "deploy:symlink_configs", "resque:symlink"
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.