From ddfcdffb3bec0f0befa6901093064336cf3d7a80 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Sat, 21 Jul 2018 08:53:05 +0530 Subject: Modified the changes to make it backward compatible --- railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails') 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 da3f99ec2b..f6146e7259 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 @@ -4,8 +4,8 @@ # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches the default thread size of Active Record. # -min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { 5 } max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } threads min_threads_count, max_threads_count # Specifies the `port` that Puma will listen on to receive requests; default is 3000. -- cgit v1.2.3