mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Fix rails env call
This commit is contained in:
parent
24eaef1ae4
commit
b86aa06bbb
1 changed files with 7 additions and 1 deletions
|
|
@ -44,7 +44,13 @@ preload_app!
|
|||
plugin :tmp_restart
|
||||
|
||||
# If env var is set or we're in development, solid_queue will run in puma
|
||||
plugin :solid_queue if ENV['SOLID_QUEUE_IN_PUMA'] || Rails.env.development?
|
||||
if ENV['SOLID_QUEUE_IN_PUMA'] || ENV.fetch('RAILS_ENV', 'development') == 'development'
|
||||
begin
|
||||
plugin :solid_queue
|
||||
rescue => e
|
||||
puts "Failed to load solid_queue plugin: #{e.message}"
|
||||
end
|
||||
end
|
||||
|
||||
# Prometheus exporter
|
||||
if ENV['PROMETHEUS_EXPORTER_ENABLED'].to_s == 'true'
|
||||
|
|
|
|||
Loading…
Reference in a new issue