Created
September 27, 2012 07:01
-
-
Save ore-public/3792596 to your computer and use it in GitHub Desktop.
capistranoのunicorn再起動のところ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && bundle exec unicorn -c #{current_path}/config/unicorn.rb -E production -D" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } do | |
run "kill -KILL -s QUIT `cat #{shared_path}/pids/unicorn.pid`" | |
end | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
stop | |
start | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment