add airbrake support

pull/2729/head
Martin Linkhorst 10 years ago
parent c604f17be8
commit aa3a5437fc
  1. 3
      Gemfile
  2. 4
      Gemfile.lock
  3. 11
      config/initializers/airbrake.rb

@ -99,6 +99,9 @@ gem 'syck', :platforms => [:ruby_20, :mingw_20, :ruby_21, :mingw_21], :require =
gem 'gon', '~> 4.0'
# catch exceptions and send them to any airbrake compatible backend
gem 'airbrake'
group :production do
# we use dalli as standard memcache client
# requires memcached 1.4+

@ -90,6 +90,9 @@ GEM
acts_as_list (0.2.0)
activerecord (>= 3.0)
addressable (2.3.4)
airbrake (3.1.14)
builder
json
arel (3.0.3)
awesome_nested_set (2.1.6)
activerecord (>= 3.0.0)
@ -412,6 +415,7 @@ DEPENDENCIES
activerecord-jdbcsqlite3-adapter
activerecord-tableless (~> 1.0)
acts_as_list (~> 0.2.0)
airbrake
awesome_nested_set
bourbon (~> 4.0)
capybara (~> 2.3.0)

@ -0,0 +1,11 @@
if ENV['AIRBRAKE_API_KEY']
Airbrake.configure do |config|
config.api_key = ENV.fetch('AIRBRAKE_API_KEY')
config.host = ENV['AIRBRAKE_HOST'] if ENV['AIRBRAKE_HOST']
config.port = ENV.fetch('AIRBRAKE_PORT', 443)
config.secure = config.port == 443
config.rescue_rake_exceptions = true
# config.development_environments = []
end
end
Loading…
Cancel
Save