Skip to content

Commit

Permalink
possible variations for Heroku ENV settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarg committed Aug 24, 2011
1 parent 93e7f38 commit 7921bdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/new_relic/control/configuration.rb
Expand Up @@ -67,7 +67,8 @@ def apdex_t
end

def license_key
fetch('license_key', ENV['NEWRELIC_LICENSE_KEY'])
env_setting = ENV['NEW_RELIC_LICENSE_KEY'] || ENV['NEWRELIC_LICENSE_KEY']
fetch('license_key', env_setting)
end

def capture_params
Expand Down
1 change: 1 addition & 0 deletions lib/new_relic/control/instance_methods.rb
Expand Up @@ -45,6 +45,7 @@ module InstanceMethods
#
def init_plugin(options={})
options['app_name'] = ENV['NEWRELIC_APP_NAME'] if ENV['NEWRELIC_APP_NAME']
options['app_name'] ||= ENV['NEW_RELIC_APP_NAME'] if ENV['NEW_RELIC_APP_NAME']

# Merge the stringified options into the config as overrides:
logger_override = options.delete(:log)
Expand Down

0 comments on commit 7921bdc

Please sign in to comment.