From 36f3dd333bcf1d94dbf0d086b501df5804663bce Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Sun, 23 Jun 2019 16:33:55 +0200 Subject: Add pidfile option to puma config template This allow to call `pumactl` directly without extra parameters needed --- railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'railties') diff --git a/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt index 649253aeca..5ed4437744 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt @@ -16,6 +16,9 @@ port ENV.fetch("PORT") { 3000 } # environment ENV.fetch("RAILS_ENV") { "development" } +# Specifies the `pidfile` that Puma will use. +pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } + # Specifies the number of `workers` to boot in clustered mode. # Workers are forked web server processes. If using threads and workers together # the concurrency of the application would be max `threads` * `workers`. -- cgit v1.2.3