* disable influx

This commit is contained in:
Seth Call 2016-04-06 13:35:38 -05:00
parent 9e4105a391
commit 90c167fb91
3 changed files with 6 additions and 2 deletions

View File

@ -62,8 +62,10 @@ module JamRuby
influxdb_port = options[:influxdb_port]
influxdb_async = options[:influxdb_async].nil? ? true : options[:influxdb_async]
# WHEN WE TRY TO BRING INFLUX BACK, TAKE THIS OUT
influx_db_right_now = false
if influxdb_database && influxdb_database.length > 0
if influx_db_right_now && influxdb_database && influxdb_database.length > 0
@client = InfluxDB::Client.new influxdb_database,
username: influxdb_username,
password: influxdb_password,

View File

@ -35,6 +35,7 @@ Resque.before_first_fork do
end
JamRuby::Stats.init(config)
end
# https://devcenter.heroku.com/articles/forked-pg-connections
Resque.before_fork do

View File

@ -348,7 +348,8 @@ if defined?(Bundler)
config.influxdb_unsafe_password = "root" # these are exposed to JavaScript
config.influxdb_hosts = ["localhost"]
config.influxdb_port = 8086
config.influxdb_ignored_environments = ENV["INFLUXDB_ENABLED"] == '1' ? ['test', 'cucumber'] : ['test', 'cucumber', 'development']
#config.influxdb_ignored_environments = ENV["INFLUXDB_ENABLED"] == '1' ? ['test', 'cucumber'] : ['test', 'cucumber', 'development']
config.influxdb_ignored_environments = ['test', 'cucumber', 'development', 'production']
config.allow_spikes = false
config.show_jamblaster_kickstarter_link = true