aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/puma.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/puma.rb b/config/puma.rb
index 41e7344..2d0dae8 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -4,6 +4,9 @@
# 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.
#
+
+require 'rails'
+
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