Updated puma.rb recipes

This commit is contained in:
Vokhmin Alexey V 2013-11-27 21:17:27 +04:00
parent 39a6ee9635
commit d8ab1588ab
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ Capistrano::Configuration.instance(:must_exist).load do
# set :unicorn_port, 8080
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{fetch :current_path} && #{try_sudo} #{puma_binary} -b /tmp/#{fetch :application}_unicorn.sock -e #{rails_env} -d -C config/puma.rb" # -p #{unicorn_port}
run "cd #{fetch :current_path} && #{try_sudo} #{puma_binary} -b unix:/tmp/#{fetch :application}_unicorn.sock -e #{rails_env} -d -C config/puma.rb" # -p #{unicorn_port}
end
task :stop, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} kill `cat #{puma_pid}`" rescue warn 'deploy:stop FAILED'