Forked from jondeandres/gist:e5a897b5a6394ae6bdbf
Last active
August 29, 2015 14:15
-
-
Save thbar/edef43dd335832a6918b 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
# 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