Daemonize puma on production

We're already doing this thanks to capistrano3-puma, but it's easy to
forget this option when starting puma manually.
This commit is contained in:
Javi Martín
2019-11-16 19:28:27 +01:00
parent 815a080460
commit 1ff20921d3

View File

@@ -13,6 +13,7 @@ state_path "#{rails_root}/tmp/pids/puma.state"
stdout_redirect "#{rails_root}/log/puma_access.log", "#{rails_root}/log/puma_error.log", true
bind "unix://#{rails_root}/tmp/sockets/puma.sock"
daemonize
threads 0, 16
workers 2