File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
railties/lib/rails/generators/rails/app/templates/config Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 7
7
# Any libraries that use thread pools should be configured to match
8
8
# the maximum value specified for Puma. Default is set to 5 threads for minimum
9
9
# and maximum; this matches the default thread size of Active Record.
10
- #
11
10
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
12
11
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
13
12
threads min_threads_count, max_threads_count
14
13
15
14
# Specifies the `worker_timeout` threshold that Puma will use to wait before
16
15
# terminating a worker in development environments.
17
- #
18
16
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
19
17
20
18
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
21
- #
22
19
port ENV.fetch("PORT") { 3000 }
23
20
24
21
# Specifies the `environment` that Puma will run in.
25
- #
26
22
environment ENV.fetch("RAILS_ENV") { "development" }
27
23
28
24
# Specifies the `pidfile` that Puma will use.
You can’t perform that action at this time.
0 commit comments