Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
correctly use REGISTRATION_LIVE_SITE as a bool in EnvConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Oct 18, 2023
1 parent 006f149 commit cdf94ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/prometheus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

PrometheusExporter::Client.default = PrometheusExporter::Client.new(host: ENV.fetch('PROMETHEUS_EXPORTER'), port: 9091)

if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE
if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE?
PrometheusExporter::Instrumentation::Process.start(type: 'wca-registration-handler-staging', labels: { process: '1' })
suffix = '-staging'
else
Expand Down

0 comments on commit cdf94ca

Please sign in to comment.