Skip to content

Instantly share code, notes, and snippets.

@hemju
Forked from sfilatov/gist:1109269
Created July 30, 2011 08:48
Show Gist options
  • Save hemju/1115341 to your computer and use it in GitHub Desktop.
Save hemju/1115341 to your computer and use it in GitHub Desktop.
Migrate from Hoptoad to Airbrake
# 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