1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Remove influxdb errors in non prod environments

This commit is contained in:
2024-11-25 11:33:47 -05:00
parent b1f8cc3532
commit bb548be81b

View File

@@ -44,4 +44,9 @@ if ENV['WRESTLINGDEV_INFLUXDB_HOST']
## infer the app name from the Rails.application class name. ## infer the app name from the Rails.application class name.
# config.application_name = Rails.application.class.parent_name # config.application_name = Rails.application.class.parent_name
end end
else
# Explicitly disable InfluxDB if the host environment variable is not set
InfluxDB::Rails.configure do |config|
config.ignored_environments = [Rails.env]
end
end end