mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-15 17:59:39 +00:00
Do not initialize InfluxDB::Rails unless the host environment variable is defined
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
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
|
||||
@@ -43,3 +44,4 @@ InfluxDB::Rails.configure do |config|
|
||||
## 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