Sha256: b5627853a6e8b7e762f65e96f60592ff0d0462acd1417614d71d7c56f8412f5f
Contents?: true
Size: 437 Bytes
Versions: 11
Compression:
Stored size: 437 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do set(:unicorn_pid) { "`cat #{deploy_to}/tmp/pids/unicorn.pid`" } namespace :unicorn do desc 'Reload unicorn' task :reload, :roles => :app, :except => {:no_release => true} do run "kill -HUP #{unicorn_pid}" end desc 'Stop unicorn' task :stop, :roles => :app, :except => {:no_release => true} do run "kill -QUIT #{unicorn_pid}" end end end
Version data entries
11 entries across 11 versions & 1 rubygems