mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Make airbrake environment configurable
This commit is contained in:
parent
d5d3d6393f
commit
c86bd96588
2 changed files with 2 additions and 1 deletions
|
@ -155,5 +155,6 @@ test:
|
|||
|
||||
# Airbrake // Errbit:
|
||||
airbrake_host: "https://your-errbit-host.ee"
|
||||
# airbrake_env: "staging", defaults to Rails.env
|
||||
airbrake_project_id: "1"
|
||||
airbrake_project_key: "api_key"
|
||||
|
|
|
@ -17,6 +17,6 @@ Airbrake.configure do |config|
|
|||
config.project_id = ENV['airbrake_project_id']
|
||||
config.project_key = ENV['airbrake_project_key']
|
||||
|
||||
config.environment = Rails.env
|
||||
config.environment = ENV['airbrake_env'] || Rails.env
|
||||
config.ignore_environments = %w(development test)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue