Skip to content

Commit 9c91311

Browse files
authored
Merge pull request rails#36542 from spk/add-pidfile-option-to-puma-conf
Add pidfile option to puma config template
2 parents fc17537 + 36f3dd3 commit 9c91311

File tree

1 file changed

+3
-0
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+3
-0
lines changed

railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ port ENV.fetch("PORT") { 3000 }
1616
#
1717
environment ENV.fetch("RAILS_ENV") { "development" }
1818

19+
# Specifies the `pidfile` that Puma will use.
20+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
21+
1922
# Specifies the number of `workers` to boot in clustered mode.
2023
# Workers are forked web server processes. If using threads and workers together
2124
# the concurrency of the application would be max `threads` * `workers`.

0 commit comments

Comments
 (0)