-
-
Save hemju/1115340 to your computer and use it in GitHub Desktop.
Migrate from Hoptoad to Airbrake
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
# 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
Hi @hjuskewycz,
Thanks for the gist
Just a small correction in the added code
Rails 3 - bundler Gemfile(config/Gemfile)
gem 'airbrake', '2.4.11', require => "hoptoad_notifier"
should be
Rails 3 - bundler Gemfile(config/Gemfile)
gem 'airbrake', '2.4.11', :require => "hoptoad_notifier"
Just "require" should be ":require"
Thanks again,
bionuc