Skip to content

Instantly share code, notes, and snippets.

@gary-rafferty
Created May 9, 2012 20:05
Show Gist options
  • Save gary-rafferty/2648443 to your computer and use it in GitHub Desktop.
Save gary-rafferty/2648443 to your computer and use it in GitHub Desktop.
Airbrake test
require 'sinatra/base'
require 'airbrake'
Airbrake.configure do |config|
config.api_key = 'YOUR-API-KEY-HERE'
config.host = 'api.airbrake.io'
end
class MyApp < Sinatra::Base
use Airbrake::Rack
enable :raise_errors
get "/" do
raise "Sinatra has left the building"
end
run! if app_file == $0
end
# To run the application
# ruby app.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment