From b10b8e63670f2a45bc3a8475ce6a4fd5bc875637 Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 15:23:08 +0200 Subject: Production environment with systemd and chruby requires this... --- config/puma.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') 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 -- cgit v1.2.3