aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirag Shah <shahchirag1709@gmail.com>2018-07-21 08:53:05 +0530
committerChirag Shah <shahchirag1709@gmail.com>2018-07-21 08:53:05 +0530
commitddfcdffb3bec0f0befa6901093064336cf3d7a80 (patch)
tree19d4cda190cc58a4191c63a293bda90d4f2bdd46
parent94a5125508add2d036bffc80a54a9f07d6feb657 (diff)
downloadrails-ddfcdffb3bec0f0befa6901093064336cf3d7a80.tar.gz
rails-ddfcdffb3bec0f0befa6901093064336cf3d7a80.tar.bz2
rails-ddfcdffb3bec0f0befa6901093064336cf3d7a80.zip
Modified the changes to make it backward compatible
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt2
1 files changed, 1 insertions, 1 deletions
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.