Skip to content

Commit

Permalink
CHANGED: Moved newrelic loading location
Browse files Browse the repository at this point in the history
  • Loading branch information
deiga committed Feb 21, 2013
1 parent d12ec8e commit 468a7bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require './spotilist'

run Spotilist
require 'newrelic_rpm'
NewRelic::Agent.after_fork(:force_reconnect => true)

run Spotilist
6 changes: 3 additions & 3 deletions spotilist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 468a7bd

Please sign in to comment.