Sha256: 13451217c11cb8a1e55b7a1b7b3a0ba726ca64e1e890465ad14e7bd5d81b9a3c
Contents?: true
Size: 657 Bytes
Versions: 19
Compression:
Stored size: 657 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do 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 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" add this to the deploy.rb file end end
Version data entries
19 entries across 19 versions & 1 rubygems