Don't depend on Rails.root as thin does not have it before app require
This commit is contained in:
parent
918284a8f8
commit
23dd975551
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# the COPYRIGHT file.
|
||||
|
||||
# use newrelic if configured via config/newrelic.yml
|
||||
require 'newrelic_rpm' if File.exists?(Rails.root.to_s << '/config/newrelic.yml')
|
||||
require 'newrelic_rpm' if File.exists?(File.expand_path('../newrelic.yml', __FILE__))
|
||||
|
||||
# Load the rails application
|
||||
require File.expand_path('../application', __FILE__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue