File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
railties/lib/rails/generators/rails/app/templates/config Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,6 @@ environment rails_env
32
32
33
33
case rails_env
34
34
when "production"
35
- # If you are running more than 1 thread per process, the workers count
36
- # should be equal to the number of processors (CPU cores) in production.
37
- #
38
- # Automatically detect the number of available processors in production
39
- # when WEB_CONCURRENCY is set to "auto".
40
- require "concurrent-ruby"
41
- workers_count = if ENV["WEB_CONCURRENCY"] == "auto"
42
- Concurrent.available_processor_count
43
- else
44
- Integer(ENV.fetch("WEB_CONCURRENCY", 1))
45
- end
46
- workers workers_count if workers_count > 1
47
-
48
35
preload_app!
49
36
when "development"
50
37
# Specifies a very generous `worker_timeout` so that the worker
You can’t perform that action at this time.
0 commit comments