Disable airbrake in dev env completely
parent
f4c9122f74
commit
869e1b3c7a
@ -1,12 +1,13 @@
|
||||
Airbrake.configure do |config|
|
||||
unless CFG['AIRBRAKE_API_KEY'].blank?
|
||||
if CFG['AIRBRAKE_API_KEY']
|
||||
require 'airbrake'
|
||||
|
||||
Airbrake.configure do |config|
|
||||
config.api_key = CFG['AIRBRAKE_API_KEY']
|
||||
config.host = CFG['AIRBRAKE_HOST']
|
||||
config.port = 80
|
||||
config.secure = config.port == 443
|
||||
end
|
||||
|
||||
envs = ['development', 'bugfix']
|
||||
envs << Rails.env if CFG['AIRBRAKE_API_KEY'].blank?
|
||||
config.development_environments = envs
|
||||
envs = ['development', 'bugfix']
|
||||
config.development_environments = envs
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue