From 7ffa03731ececde057ab8f573b5700f640264a17 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 3 Dec 2018 12:33:27 +0100 Subject: [PATCH] Refactoring: Make sure Puma environment matches RAILS_ENV ENV. --- config/puma.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/puma.rb b/config/puma.rb index bfd115475..946ebb147 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -3,6 +3,8 @@ threads_count_min = Integer(ENV['MIN_THREADS'] || 5) threads_count_max = Integer(ENV['MAX_THREADS'] || 30) threads threads_count_min, threads_count_max +environment ENV.fetch('RAILS_ENV', 'development') + preload_app! on_worker_boot do