mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 21:29:13 +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|
|
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
|
||||||
@@ -43,3 +44,4 @@ InfluxDB::Rails.configure do |config|
|
|||||||
## 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
|
||||||
|
|||||||
Reference in New Issue
Block a user