diff --git a/config.ru b/config.ru index 2436bf4..b112ff4 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,6 @@ require './spotilist' -run Spotilist \ No newline at end of file +require 'newrelic_rpm' +NewRelic::Agent.after_fork(:force_reconnect => true) + +run Spotilist diff --git a/spotilist.rb b/spotilist.rb index 22f4e3c..5c002e0 100644 --- a/spotilist.rb +++ b/spotilist.rb @@ -32,9 +32,9 @@ class Spotilist < Sinatra::Base register Sinatra::Reloader end - configure :production do - require 'newrelic_rpm' - end + # configure :production do + # require 'newrelic_rpm' + # end class ConfigurationError < StandardError end