From d59c75281e29fa28d921c23b47150ab9b50f40cc Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 28 Jul 2025 10:17:45 -0400 Subject: [PATCH] Updating puma.rb to allow changing the rack environment dynamically --- config/puma.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index ce118df..aebe0b6 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,7 +1,7 @@ -app_dir = File.expand_path("..", __dir__) +app_dir = File.expand_path('..', __dir__) directory app_dir -environment 'production' +environment ENV.fetch('RACK_ENV', 'development') bind 'tcp://0.0.0.0:9292' workers 2