From 216cf632b88412c8cbe2e57439b7670ab727294e Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Thu, 14 Feb 2019 23:26:50 +0100 Subject: [PATCH] Change project id/key to not be the same setting --- config/initializers/airbrake.rb | 4 ++-- dotenv.example | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index 44cac749..e3c96dfc 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -1,7 +1,7 @@ Airbrake.configure do |config| # Change this to some sensible data for your errbit instance - config.project_id = ENV['OSEM_ERRBIT_APIKEY'] || Rails.application.secrets.errbit_key || '' - config.project_key = ENV['OSEM_ERRBIT_APIKEY'] || Rails.application.secrets.errbit_key || '' + config.project_id = ENV['OSEM_ERRBIT_ID'] || Rails.application.secrets.errbit_id || '' + config.project_key = ENV['OSEM_ERRBIT_KEY'] || Rails.application.secrets.errbit_key || '' config.host = ENV['OSEM_ERRBIT_HOST'] config.environment = Rails.env if config.project_key.blank? || config.host.blank? diff --git a/dotenv.example b/dotenv.example index 3d7bcfb3..e58a5f88 100644 --- a/dotenv.example +++ b/dotenv.example @@ -49,8 +49,10 @@ # The errbit host to post exceptions to # OSEM_ERRBIT_HOST=errbit.example.com -# The api key for the errbit host -# OSEM_ERRBIT_APIKEY=1234 +# The project to use on the errbit host +# OSEM_ERRBIT_ID=1234 +# The key for this project +# OSEM_ERRBIT_KEY=5678 # OMNIAUTH Developer Key/Secret for GOOGLE # OSEM_GOOGLE_KEY=1234