Issue #2688 Remove hoptoad_notifier and use airbreak
This commit is contained in:
parent
38ad76d9c7
commit
f4801651eb
6 changed files with 14 additions and 13 deletions
2
Gemfile
2
Gemfile
|
|
@ -28,7 +28,7 @@ gem 'messagebus_ruby_api', '1.0.1'
|
|||
|
||||
group :production do # we don't install these on travis to speed up test runs
|
||||
# reporting
|
||||
gem 'hoptoad_notifier'
|
||||
gem 'airbrake'
|
||||
gem 'newrelic_rpm'
|
||||
gem 'rack-google-analytics', :require => 'rack/google-analytics'
|
||||
gem 'rack-piwik', :require => 'rack/piwik'
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ GEM
|
|||
activesupport (>= 3.0.0)
|
||||
rack (>= 1.1.0)
|
||||
addressable (2.2.4)
|
||||
airbrake (3.0.9)
|
||||
activesupport
|
||||
builder
|
||||
archive-tar-minitar (0.5.2)
|
||||
arel (2.0.10)
|
||||
bcrypt-ruby (2.1.4)
|
||||
|
|
@ -198,9 +201,6 @@ GEM
|
|||
heroku (>= 2)
|
||||
rails (>= 2)
|
||||
highline (1.6.9)
|
||||
hoptoad_notifier (2.4.11)
|
||||
activesupport
|
||||
builder
|
||||
i18n (0.5.0)
|
||||
i18n-inflector (2.6.3)
|
||||
i18n (>= 0.4.1)
|
||||
|
|
@ -420,6 +420,7 @@ DEPENDENCIES
|
|||
acts-as-taggable-on!
|
||||
acts_as_api
|
||||
addressable (= 2.2.4)
|
||||
airbrake
|
||||
bundler (>= 1.0.0)
|
||||
capistrano (~> 2.9.0)
|
||||
capistrano-ext (= 1.2.1)
|
||||
|
|
@ -446,7 +447,6 @@ DEPENDENCIES
|
|||
haml
|
||||
heroku
|
||||
heroku_san
|
||||
hoptoad_notifier
|
||||
http_accept_language!
|
||||
i18n-inflector-rails (~> 1.0)
|
||||
jammit (= 0.6.5)
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ defaults: &defaults
|
|||
# Enable extensive logging to websocket server.
|
||||
socket_debug : false
|
||||
|
||||
# Hoptoad api key, send failures to Hoptoad
|
||||
hoptoad_api_key: ''
|
||||
# Airbreak api key, send failures to http://projectname.airbreak.io/ (Former Hoptoad)
|
||||
airbreak_api_key: ''
|
||||
|
||||
#social media setup
|
||||
facebook_app_id: ''
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ set :config_yaml, YAML.load_file(File.dirname(__FILE__) + '/deploy_config.yml')
|
|||
require './config/cap_colors'
|
||||
require 'bundler/capistrano'
|
||||
require './config/boot'
|
||||
require 'hoptoad_notifier/capistrano'
|
||||
require 'airbrake/capistrano'
|
||||
set :bundle_dir, ''
|
||||
|
||||
set :stages, ['production', 'staging']
|
||||
|
|
|
|||
6
config/initializers/airbreak.rb
Normal file
6
config/initializers/airbreak.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# (Former Hoptoad)
|
||||
if AppConfig[:airbreak_api_key].present?
|
||||
Airbrake.configure do |config|
|
||||
config.api_key = AppConfig[:airbreak_api_key]
|
||||
end
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
if AppConfig[:hoptoad_api_key].present?
|
||||
HoptoadNotifier.configure do |config|
|
||||
config.api_key = AppConfig[:hoptoad_api_key]
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue