File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
variants/backend-base/config Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 88min_threads_count = ENV . fetch ( "RAILS_MIN_THREADS" , max_threads_count )
99threads min_threads_count , max_threads_count
1010
11+ rails_env = ENV . fetch ( "RAILS_ENV" , "development" )
12+
1113# Specifies the `worker_timeout` threshold that Puma will use to wait before
1214# terminating a worker in development environments.
1315#
14- worker_timeout 3600 if ENV . fetch ( "RAILS_ENV" , "development" ) == "development"
16+ worker_timeout 3600 if rails_env == "development"
1517
1618port ENV . fetch ( "PORT" , 3000 )
1719
18- rails_env = ENV . fetch ( "RAILS_ENV" , "development" )
19-
2020environment rails_env
2121
22- if rails_env == "development"
23- # set a generous worker timeout so that the worker isn't killed by puma when
24- # suspended by a debugger
25- worker_timeout ( 3600 )
26- end
27-
2822# Specifies the `pidfile` that Puma will use.
2923pidfile ENV . fetch ( "PIDFILE" , "tmp/pids/server.pid" )
3024
You can’t perform that action at this time.
0 commit comments