diff --git a/ruby/lib/jam_ruby/lib/stats.rb b/ruby/lib/jam_ruby/lib/stats.rb index 65f3558c3..a687f00a7 100644 --- a/ruby/lib/jam_ruby/lib/stats.rb +++ b/ruby/lib/jam_ruby/lib/stats.rb @@ -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, diff --git a/ruby/lib/jam_ruby/resque/resque_hooks.rb b/ruby/lib/jam_ruby/resque/resque_hooks.rb index be09d0925..e58298569 100644 --- a/ruby/lib/jam_ruby/resque/resque_hooks.rb +++ b/ruby/lib/jam_ruby/resque/resque_hooks.rb @@ -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 diff --git a/web/config/application.rb b/web/config/application.rb index 7ea572ec1..e6c93d40b 100644 --- a/web/config/application.rb +++ b/web/config/application.rb @@ -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