From 7eb2f4475d402ea17c48fad063f44fba80d0668f Mon Sep 17 00:00:00 2001 From: Jens Ravens Date: Tue, 14 Jan 2025 18:04:09 +0100 Subject: [PATCH] correctly query environment --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index c6dd416..1831b56 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -36,7 +36,7 @@ plugin :tmp_restart # Run the Solid Queue supervisor inside of Puma for single-server deployments -plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] || Rails.env.development? +plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] || ENV.fetch("RAILS_ENV", "development") == "development" # Specify the PID file. Defaults to tmp/pids/server.pid in development. # In other environments, only set the PID file if requested.