1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-16 04:56:58 +00:00

Do not initialize InfluxDB::Rails unless the host environment variable is defined

This commit is contained in:
2022-09-16 19:21:58 +00:00
parent 994fc18365
commit 9c1563febf

View File

@@ -1,4 +1,5 @@
InfluxDB::Rails.configure do |config| if ENV['WRESTLINGDEV_INFLUXDB_HOST']
InfluxDB::Rails.configure do |config|
## The only setting you actually need to update is the name of the ## The only setting you actually need to update is the name of the
## database within the InfluxDB server instance. Don't forget to ## database within the InfluxDB server instance. Don't forget to
## create this database as well. ## create this database as well.
@@ -42,4 +43,5 @@ InfluxDB::Rails.configure do |config|
## Set the application name to something meaningful, by default we ## Set the application name to something meaningful, by default we
## 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 end