move newrelic and airbrake out of any group, as it is not loading at all
if it is in any bundler group #confused
This commit is contained in:
parent
52438ffaf2
commit
ba010833c7
3 changed files with 5 additions and 10 deletions
7
Gemfile
7
Gemfile
|
|
@ -25,14 +25,11 @@ gem 'twitter', '2.0.2'
|
||||||
# mail
|
# mail
|
||||||
|
|
||||||
gem 'messagebus_ruby_api', '1.0.3'
|
gem 'messagebus_ruby_api', '1.0.3'
|
||||||
|
gem 'airbrake'
|
||||||
|
gem 'newrelic_rpm'
|
||||||
|
|
||||||
group :production do # we don't install these on travis to speed up test runs
|
group :production do # we don't install these on travis to speed up test runs
|
||||||
gem 'rack-ssl', :require => 'rack/ssl'
|
gem 'rack-ssl', :require => 'rack/ssl'
|
||||||
end
|
|
||||||
|
|
||||||
group :reporting do
|
|
||||||
gem 'airbrake'
|
|
||||||
gem 'newrelic_rpm'
|
|
||||||
gem 'rack-google-analytics', :require => 'rack/google-analytics'
|
gem 'rack-google-analytics', :require => 'rack/google-analytics'
|
||||||
gem 'rack-piwik', :require => 'rack/piwik'
|
gem 'rack-piwik', :require => 'rack/piwik'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ GEM
|
||||||
heroku_san (1.3.0)
|
heroku_san (1.3.0)
|
||||||
heroku (>= 2)
|
heroku (>= 2)
|
||||||
rails (>= 2)
|
rails (>= 2)
|
||||||
highline (1.6.9)
|
highline (1.6.11)
|
||||||
http_accept_language (1.0.2)
|
http_accept_language (1.0.2)
|
||||||
i18n (0.5.0)
|
i18n (0.5.0)
|
||||||
i18n-inflector (2.6.3)
|
i18n-inflector (2.6.3)
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,7 @@
|
||||||
if AppConfig[:airbrake_api_key].present?
|
if AppConfig[:airbrake_api_key].present?
|
||||||
require 'airbrake'
|
require 'airbrake'
|
||||||
Airbrake.configure do |config|
|
Airbrake.configure do |config|
|
||||||
|
puts AppConfig[:airbrake_api_key]
|
||||||
config.api_key = AppConfig[:airbrake_api_key]
|
config.api_key = AppConfig[:airbrake_api_key]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
Rails.application.config.middleware.insert_before 1, Airbrake::Rack
|
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue