Hi,
The acts_as_ferret server refers to ENV[’_’] in server_manager.rb:
require(File.join(File.dirname(ENV[’_’]), ‘…/config/environment’))
ENV[’_’] is nil so the script fails. I am assuming that it is supposed
to be the folder name of the script that is running or something like
that, but I can’t find an documentation on it. I am also assuming that
it may be one of those automatic environment variables passed in as part
of the execution context on most systems, but may not be on FreeBSD.
Three things:
-
What should this be returning?
-
How can I get it to return the right thing?
-
If it is indeed returning the name of the folder where the script is
executing from, couldn’t I jusr replace it with:require(RAILS_ROOT + ‘/config/environment’)
?
TIA
Gideon