Skip to content

Commit cda8c70

Browse files
dhhrafaelfranca
andauthored
Remove redundant Puma configuration settings from fresh config/puma.rb files
Co-authored-by: Rafael Mendonça França <[email protected]>
1 parent c15ad31 commit cda8c70

File tree

1 file changed

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

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@
2727
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
2828
threads threads_count, threads_count
2929

30-
# Specifies the `environment` that Puma will run in.
31-
rails_env = ENV.fetch("RAILS_ENV", "development")
32-
environment rails_env
33-
34-
case rails_env
35-
when "production"
36-
preload_app!
37-
when "development"
38-
# Specifies a very generous `worker_timeout` so that the worker
39-
# isn't killed by Puma when suspended by a debugger.
40-
worker_timeout 3600
41-
end
42-
4330
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
4431
port ENV.fetch("PORT", 3000)
4532

0 commit comments

Comments
 (0)