mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-16 10:09:00 +00:00
Do not initialize InfluxDB::Rails unless the host environment variable is defined
This commit is contained in:
@@ -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
|
||||
## database within the InfluxDB server instance. Don't forget to
|
||||
## create this database as well.
|
||||
@@ -42,4 +43,5 @@ InfluxDB::Rails.configure do |config|
|
||||
## Set the application name to something meaningful, by default we
|
||||
## infer the app name from the Rails.application class name.
|
||||
# config.application_name = Rails.application.class.parent_name
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user