diff options
author | Laurent Arnoud <laurent@spkdev.net> | 2019-06-23 16:33:55 +0200 |
---|---|---|
committer | Laurent Arnoud <laurent@spkdev.net> | 2019-06-23 16:33:55 +0200 |
commit | 36f3dd333bcf1d94dbf0d086b501df5804663bce (patch) | |
tree | ce46afd35c9834942802ddc620892c84f16c86ab /railties | |
parent | 74e38da8106bfd435132653e09acbe5118cfe8a0 (diff) | |
download | rails-36f3dd333bcf1d94dbf0d086b501df5804663bce.tar.gz rails-36f3dd333bcf1d94dbf0d086b501df5804663bce.tar.bz2 rails-36f3dd333bcf1d94dbf0d086b501df5804663bce.zip |
Add pidfile option to puma config template
This allow to call `pumactl` directly without extra parameters needed
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt | 3 |
1 files changed, 3 insertions, 0 deletions
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`. |