2012-03-04 22:49:13 +00:00
|
|
|
Airbrake.configure do |config|
|
2012-06-09 14:11:29 +00:00
|
|
|
unless CFG['AIRBRAKE_API_KEY'].blank?
|
|
|
|
config.api_key = CFG['AIRBRAKE_API_KEY']
|
|
|
|
config.host = CFG['AIRBRAKE_HOST']
|
2012-06-07 21:58:56 +00:00
|
|
|
config.port = 80
|
|
|
|
config.secure = config.port == 443
|
|
|
|
end
|
|
|
|
|
|
|
|
envs = ['development', 'bugfix']
|
2012-06-09 14:11:29 +00:00
|
|
|
envs << Rails.env if CFG['AIRBRAKE_API_KEY'].blank?
|
2012-06-07 21:58:56 +00:00
|
|
|
config.development_environments = envs
|
2012-03-04 22:49:13 +00:00
|
|
|
end
|