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:
parent
8832cd241e
commit
981c27f0fe
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue