Sha256: 5dfb2eb156cca29892191510e5af4b4d77a2417282bc96ce7f5ea30b213f0852

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 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
      run "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 
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eycap-0.5.16 lib/eycap/recipes/resque.rb