Permalink
Browse files

Add exception notification

  • Loading branch information...
1 parent 58f3b67 commit eb8cc6e071275109b5fa4f51a655f7e422081d59 @john-griffin john-griffin committed Oct 19, 2012
Showing with 18 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +9 −0 Gemfile.lock
  3. +1 −0 config/environments/production.rb
  4. +6 −0 config/initializers/exception_notification.rb
View
@@ -9,6 +9,8 @@ group :assets do
gem 'uglifier', '>= 1.0.3'
end
+gem 'aws-ses', require: 'aws/ses'
+gem 'exception_notification', '~> 2.4.1', require: 'exception_notifier'
gem 'gds-sso', '2.1.0'
gem 'jquery-rails'
gem 'plek', '0.5.0'
View
@@ -31,6 +31,11 @@ GEM
multi_json (~> 1.0)
addressable (2.3.2)
arel (3.0.2)
+ aws-ses (0.4.4)
+ builder
+ mail (> 2.2.5)
+ mime-types
+ xml-simple
builder (3.0.4)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
@@ -41,6 +46,7 @@ GEM
coffee-script-source (1.3.3)
crack (0.3.1)
erubis (2.7.0)
+ exception_notification (2.4.1)
execjs (1.4.0)
multi_json (~> 1.0)
faraday (0.8.4)
@@ -148,6 +154,7 @@ GEM
webmock (1.8.11)
addressable (>= 2.2.7)
crack (>= 0.1.7)
+ xml-simple (1.1.1)
zendesk_api (0.1.2)
faraday (>= 0.8.0)
faraday_middleware (>= 0.8.7)
@@ -161,7 +168,9 @@ PLATFORMS
ruby
DEPENDENCIES
+ aws-ses
coffee-rails (~> 3.2.1)
+ exception_notification (~> 2.4.1)
gds-sso (= 2.1.0)
jquery-rails
mocha (= 0.12.6)
@@ -61,4 +61,5 @@
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
+ config.action_mailer.delivery_method = :ses
end
@@ -0,0 +1,6 @@
+unless Rails.env.development? or Rails.env.test?
+ Rails.application.config.middleware.use ExceptionNotifier,
+ :email_prefix => "[#{Rails.application.to_s.split('::').first}] ",
+ :sender_address => %{"Winston Smith-Churchill" <winston@alphagov.co.uk>},
+ :exception_recipients => %w{govuk-exceptions@digital.cabinet-office.gov.uk}
+end

0 comments on commit eb8cc6e

Please sign in to comment.