Sha256: da83abf2bbb6690cf6bc464b88d0495d246ff1807ace5cd5f7d169d17fe213e7
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
Capistrano::Configuration.instance.load do set :unicorn_bin, "bundle exec unicorn" set :unicorn_config, "config/unicorn.#{fetch(:stage, 'production')}.rb" set :unicorn_pid, "tmp/pids/unicorn.pid" #require "capistrano-unicorn" namespace :deploy do desc "Zero-downtime restart of Unicorn" task :restart, :except => { :no_release => true } do stop start end desc "Start unicorn" task :start, :except => { :no_release => true } do run "cd #{current_path} && #{try_sudo} #{unicorn_bin} -c #{current_path}/#{unicorn_config} -E #{rails_env} -D" end desc "Stop unicorn" task :stop, :except => { :no_release => true } do run "kill -s QUIT `cat #{shared_path}/pids/unicorn.pid`;exit 0" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ms_deploy-0.2.2 | lib/ms_deploy/recipes/unicorn.rb |
ms_deploy-0.2.1 | lib/ms_deploy/recipes/unicorn.rb |