lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.9 vs lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.10
- old
+ new
@@ -14,15 +14,15 @@
puma.start
end
desc 'Start puma.'
task :start, :roles => :app, :except => {:no_release => true} do
- run "cd #{current_path} && puma -C #{puma_pidfile} -D"
+ run "cd #{current_path} && puma -C #{puma_pidfile}"
end
desc 'Stop puma.'
task :stop, :roles => :app, :except => {:no_release => true} do
- run "cd #{current_path} && kill $(#{puma_pid})"
+ run "test -s #{puma_pidfile} && kill $(#{puma_pid}) || echo 'puma not running. nothing to kill.'"
end
end
after 'deploy:restart', 'puma:restart'
\ No newline at end of file