diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-06 15:23:08 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-06 15:23:08 +0200 |
commit | b10b8e63670f2a45bc3a8475ce6a4fd5bc875637 (patch) | |
tree | 6efc6480ffd95a35713671679dcf04434a6a0224 /config | |
parent | 34ee674c79fb1e3d9b89c66df483b48e8a507f4f (diff) | |
download | incommon-map-b10b8e63670f2a45bc3a8475ce6a4fd5bc875637.tar.gz |
Production environment with systemd and chruby requires this...
Diffstat (limited to 'config')
-rw-r--r-- | config/puma.rb | 3 |
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 |