Skip to content

Commit fad500b

Browse files
gregmolnardhh
andauthored
fix comparison type issue in puma.rb template (rails#46874)
* fix comparison type issue in puma.rb template * Ensure integer Co-authored-by: David Heinemeier Hansson <[email protected]>
1 parent 6287c10 commit fad500b

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ threads min_threads_count, max_threads_count
1313

1414
# Specifies that the worker count should equal the number of processors in production.
1515
if ENV["RAILS_ENV"] == "production"
16-
worker_count = ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count }
16+
worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
1717
workers worker_count if worker_count > 1
1818
end
1919

0 commit comments

Comments
 (0)