Allow running in production mode on dev machine
parent
4b707884ab
commit
6b53a25f0a
@ -1,7 +1,12 @@
|
||||
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
|
||||
config.development_environments = ['development', 'bugfix']
|
||||
end
|
||||
|
||||
envs = ['development', 'bugfix']
|
||||
envs << Rails.env if CFG.airbrake_api_key.blank?
|
||||
config.development_environments = envs
|
||||
end
|
||||
|
Loading…
Reference in New Issue