From 2a869cb283d98a0930bcf742b079274118148646 Mon Sep 17 00:00:00 2001 From: Henry Turner Date: Fri, 8 Apr 2016 14:59:32 +0000 Subject: [PATCH] Errbit configuration This mimics the multipage-frontend configuration. The credentials are stored in env variables. --- config/initializers/airbrake.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config/initializers/airbrake.rb diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb new file mode 100644 index 00000000..2b459ee7 --- /dev/null +++ b/config/initializers/airbrake.rb @@ -0,0 +1,8 @@ +if ENV['ERRBIT_API_KEY'].present? + Airbrake.configure do |config| + config.api_key = ENV['ERRBIT_API_KEY'] + config.host = "errbit.#{ENV['GOVUK_APP_DOMAIN']}" + config.secure = true + config.environment_name = ENV['ERRBIT_ENVIRONMENT_NAME'] + end +end