Created
July 27, 2011 12:36
-
-
Save sfilatov/1109269 to your computer and use it in GitHub Desktop.
Migrate from Hoptoad to Airbrake
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
# Rails 2.3.5 - 2.3.11 environment settings (config/environment.rb) | |
config.gem 'airbrake', :version => '2.4.11', :require => "hoptoad_notifier" | |
# Rails 3 - bundler Gemfile(config/Gemfile) | |
gem 'airbrake', '2.4.11', require => "hoptoad_notifier" | |
# In Hoptoad initializer (config/hoptoad.rb) | |
HoptoadNotifier.configure do |config| | |
config.api_key = '<api key>' | |
config.host = 'airbrakeapp.com' | |
config.user_information = "Airbrake Error {{error_id}}" | |
config.notifier_url = "http://airbrakeapp.com" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment