Navigation Menu

Skip to content

Commit

Permalink
Issues with NR
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammer Saleh committed Jan 29, 2012
1 parent 2170c8a commit 9ce8868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/engine_of_war/app.rb
Expand Up @@ -28,10 +28,14 @@ def self.gauges_key=(key)
def self.newrelic_key=(key)
name = settings.site_title
name << " (#{settings.environment})" unless settings.environment == "production"
filename = File.join(File.dirname(__FILE__), "../../config/newrelic.yml")

puts "Loading NewRelic..."
ENV['NEWRELIC_APP_NAME'] = settings.site_title
ENV['NEW_RELIC_LICENSE_KEY'] = key
ENV['NRCONFIG'] = File.join(File.dirname(__FILE__), "../../config/newrelic.yml")
ENV['NRCONFIG'] = filename

raise "Can't find #{filename}" unless File.file?(filename)

require 'newrelic_rpm'
require 'rpm_contrib'
Expand Down
2 changes: 1 addition & 1 deletion lib/engine_of_war/version.rb
@@ -1,3 +1,3 @@
module EngineOfWar
VERSION = "1.6.1"
VERSION = "1.6.2"
end

0 comments on commit 9ce8868

Please sign in to comment.