-
-
Save croaky/183352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rack_hoptoad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack_hoptoad' | |
use Rack::HoptoadNotifier, "123abc" | |
run lambda {|env| | |
fail "Fail!" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack_hoptoad' | |
require 'example' | |
use Rack::HoptoadNotifier, "1234" | |
run Sinatra::Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
configure :production do | |
enable :raise_errors | |
end | |
get '/boom' do | |
fail "Fail from Sinatra!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment