From a938e31d81517b065418f01fc6ef97dac410c602 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sun, 15 Nov 2015 01:21:22 +0300 Subject: [PATCH] Updated Airbrake configs --- config/application.yml.sample | 4 +++- config/application.yml.travis | 4 +++- config/initializers/airbrake.rb | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/application.yml.sample b/config/application.yml.sample index e1f632ea0..f54ed8381 100644 --- a/config/application.yml.sample +++ b/config/application.yml.sample @@ -12,10 +12,12 @@ common: &common log_server: host: <%= ENV["ABF_WORKER_LOG_SERVER_HOST"] %> port: <%= ENV["ABF_WORKER_LOG_SERVER_PORT"] %> + airbrake: + api_key: <%= ENV["AIRBRAKE_API_KEY"] %> + host: <%= ENV["AIRBRAKE_HOST"] %> keys: key_pair_secret_key: <%= ENV["KEY_PAIR_SECRET_KEY"] %> node_instruction_secret_key: <%= ENV["NODE_INSTRUCTION_SECRET_KEY"] %> - airbrake_api_key: <%= ENV["AIRBRAKE_API_KEY"] %> secret_token: <%= ENV["SECRET_TOKEN"] %> secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> devise: diff --git a/config/application.yml.travis b/config/application.yml.travis index a0f0509d6..2a22c69b6 100644 --- a/config/application.yml.travis +++ b/config/application.yml.travis @@ -12,10 +12,12 @@ common: &common log_server: host: 127.0.0.1 port: 6379 + airbrake: + api_key: 'airbrake_api_key' + host: 'errbit.example.com' keys: key_pair_secret_key: 'key_pair_secret_key' node_instruction_secret_key: 'node_instruction_secret_key' - airbrake_api_key: 'airbrake_api_key' devise_pepper: 'e295a79fb7966e94a6e8b184ba65791a' secret_token: 'e295a79fb7966e94a6e8b184ba65791a' devise: diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index d95c4f37d..eed39ceb6 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -1,8 +1,8 @@ require 'airbrake' Airbrake.configure do |config| - config.api_key = APP_CONFIG['keys']['airbrake_api_key'] - config.host = 'errbit.rosalinux.ru' + config.api_key = APP_CONFIG['airbrake']['api_key'] + config.host = APP_CONFIG['airbrake']['host'] config.port = 80 config.secure = config.port == 443 end