Created
February 10, 2015 00:19
-
-
Save jondeandres/e5a897b5a6394ae6bdbf to your computer and use it in GitHub Desktop.
Report booting Rails errors to Rollbar
This file contains 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
# config/environment.rb | |
require File.expand_path('../application', __FILE__) | |
require File.expand_path('../rollbar', __FILE__) | |
begin | |
Rails.application.initialize! | |
rescue Exception => e | |
Rollbar.error(e) | |
raise | |
end | |
# config/rollbar.rb | |
## Move config/initializers/rollbar.rb content to here. Just configure it as usual. | |
Rollbar.configure do |config| | |
config.access_token = 'your-access-token' | |
config.framework = 'Rails' | |
config.enabled = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment