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 6287c10 commit fad500bCopy full SHA for fad500b
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
@@ -13,7 +13,7 @@ threads min_threads_count, max_threads_count
13
14
# Specifies that the worker count should equal the number of processors in production.
15
if ENV["RAILS_ENV"] == "production"
16
- worker_count = ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count }
+ worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
17
workers worker_count if worker_count > 1
18
end
19
0 commit comments