We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15ad31 commit cda8c70Copy full SHA for cda8c70
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
@@ -27,19 +27,6 @@
27
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
28
threads threads_count, threads_count
29
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
43
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
44
port ENV.fetch("PORT", 3000)
45
0 commit comments