Sha256: 9040300f01de265cdea9147b8b2bf3e938fcff1b840216647f420fa204300f92
Contents?: true
Size: 762 Bytes
Versions: 22
Compression:
Stored size: 762 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do define_recipe :delayed_job do namespace :delayed_job do desc "Start delayed_job" task :start, :only => {:delayed_job => true} do sudo "/usr/bin/monit start all -g dj_#{application}" end desc "Stop delayed_job" task :stop, :only => {:delayed_job => true} do sudo "/usr/bin/monit stop all -g dj_#{application}" end desc "Restart delayed_job" task :restart, :only => {:delayed_job => true} do sudo "/usr/bin/monit restart all -g dj_#{application}" end end after "deploy:restart", "delayed_job:restart" after "deploy:start", "delayed_job:start" after "deploy:stop", "delayed_job:stop" end end
Version data entries
22 entries across 22 versions & 1 rubygems