1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

changing capistrano recipe to daemonize puma using it's new -d option

This commit is contained in:
Diego Plentz 2012-10-16 01:12:23 -03:00
parent 8832cd241e
commit 981c27f0fe

View file

@ -9,7 +9,7 @@ Capistrano::Configuration.instance.load do
desc "Start puma"
task :start, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
puma_env = fetch(:stage, "production")
run "cd #{current_path} && #{fetch(:bundle_cmd, "bundle")} exec puma -e #{puma_env} -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false
run "cd #{current_path} && #{fetch(:bundle_cmd, "bundle")} exec puma -d -e #{puma_env} -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1", :pty => false
end
desc "Stop puma"