Just a quick post on how I got the Exceptional Add-on working with my
Sinatra app.

1.) Enable the Exceptional Add-on for your heroku app
2.) Add exceptional to your .gems file
3.) Add this code:

require 'exceptional'
...
configure :production do
  set :raise_errors, false
  Exceptional.configure ENV['EXCEPTIONAL_API_KEY']
  Exceptional::Remote.startup_announce
(::Exceptional::ApplicationEnvironment.to_hash('sinatra'))
  error do
    Exceptional::Catcher.handle_with_rack(request.env
['sinatra.error'],request.env, request)
  end
end

Fairly straight forward, hope this helps.

Luke

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to