asciinema.org/config/initializers/errbit.rb
2012-06-09 16:11:29 +02:00

13 lines
379 B
Ruby

Airbrake.configure do |config|
unless CFG['AIRBRAKE_API_KEY'].blank?
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
end