From 6bc669901f9fb3b44c2d81646351477e771c2540 Mon Sep 17 00:00:00 2001 From: Benjamin Thouret Date: Tue, 8 Dec 2015 06:03:03 -0500 Subject: [PATCH] [chore] Fixes #143 - Keep track of runtime errors on production (and get notified) --- Gemfile | 3 +++ Gemfile.lock | 3 +++ config/initializers/bugsnag.rb | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 config/initializers/bugsnag.rb diff --git a/Gemfile b/Gemfile index f87ea62b..2aecaadd 100644 --- a/Gemfile +++ b/Gemfile @@ -43,6 +43,9 @@ gem 'globalize-accessors' # Administration gem 'administrate', '~> 0.1.1' +# Ops +gem 'bugsnag' + group :development do gem 'annotate' gem 'spring' diff --git a/Gemfile.lock b/Gemfile.lock index 56efb255..12c0fdfe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,6 +66,8 @@ GEM bourbon (4.2.6) sass (~> 3.4) thor (~> 0.19) + bugsnag (2.8.13) + json (~> 1.7, >= 1.7.7) builder (3.2.2) capybara (2.5.0) mime-types (>= 1.16) @@ -338,6 +340,7 @@ DEPENDENCIES annotate autoprefixer-rails (~> 6.1.0) bootstrap-sass (~> 3.3.6) + bugsnag capybara carrierwave cloudinary diff --git a/config/initializers/bugsnag.rb b/config/initializers/bugsnag.rb new file mode 100644 index 00000000..c1c8c7ad --- /dev/null +++ b/config/initializers/bugsnag.rb @@ -0,0 +1,3 @@ +Bugsnag.configure do |config| + config.api_key = ENV["BUGSNAG_API_KEY"] +end