mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Don't start prometheus in console
This commit is contained in:
parent
bab666b182
commit
798e98e52e
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if !Rails.env.test? && DawarichSettings.prometheus_exporter_enabled?
|
||||
if defined?(Rails::Server) && !Rails.env.test? && DawarichSettings.prometheus_exporter_enabled?
|
||||
require 'prometheus_exporter/middleware'
|
||||
require 'prometheus_exporter/instrumentation'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue