diff --git a/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt index be653c9c4cd..ec35fc10b35 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt @@ -13,7 +13,7 @@ threads min_threads_count, max_threads_count # Specifies that the worker count should equal the number of processors in production. if ENV["RAILS_ENV"] == "production" - worker_count = ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count } + worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count }) workers worker_count if worker_count > 1 end