mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Added possibility to add new relic app name
This commit is contained in:
parent
4ef50d97b5
commit
66b00b7a77
3 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
19.05.2015
|
||||
|
||||
* Added possibility to define NewRelic app_name at application.yml file with 'new_relic_app_name' attribute.
|
||||
|
||||
18.05.2015
|
||||
|
||||
* Added Registrant database example file: config/database-example-registrant.yml
|
||||
|
|
|
@ -5,6 +5,10 @@ zonefile_export_dir: 'export/zonefiles'
|
|||
bank_statement_import_dir: 'import/bank_statements'
|
||||
legal_documents_dir: 'import/legal_documents'
|
||||
|
||||
# New Relic app name, keep only current mode, remove other names.
|
||||
# Example: 'Admin, EPP, REPP' will have name 'Admin, EPP, REPP - production' at New Relic.
|
||||
new_relic_app_name: 'Admin, EPP, REPP, Registrar, Registrant'
|
||||
|
||||
# You can use `rake secret` to generate a secure secret key.
|
||||
# Your secret key is used for verifying the integrity of signed cookies.
|
||||
# If you change this key, all old signed cookies will become invalid!
|
||||
|
|
1
config/initializers/new_relic_app_name.rb
Normal file
1
config/initializers/new_relic_app_name.rb
Normal file
|
@ -0,0 +1 @@
|
|||
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}" if ENV['new_relic_app_name'].present?
|
Loading…
Add table
Add a link
Reference in a new issue