Skip to content

Commit

Permalink
put hoptoad config together
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed May 17, 2011
1 parent 4692d4c commit fdb04a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config.ru
Expand Up @@ -6,11 +6,6 @@ require "uri"
require "newrelic_rpm"
require "hoptoad_notifier"

enable :raise_errors
HoptoadNotifier.configure do |config|
config.api_key = ENV['HOPTOAD_API_KEY']
end

get "/" do
erb :index
end
Expand All @@ -25,6 +20,12 @@ helpers do
end
end

# send errors to hoptoad
enable :raise_errors
HoptoadNotifier.configure do |config|
config.api_key = ENV['HOPTOAD_API_KEY']
end
use HoptoadNotifier::Rack

run Sinatra::Application

0 comments on commit fdb04a8

Please sign in to comment.