On Jan 25, 2008, at 4:53 PM, John Bachir wrote:
More info-- here is the relevant code, in lib/server_manager.rb
ENV['FERRET_USE_LOCAL_INDEX'] = 'true'
ENV['RAILS_ENV'] = $ferret_server_options['environment']
#require(File.join(File.dirname(__FILE__), '../../../../config/
environment'))
require(File.join(File.dirname(ENV['_']), '../config/environment'))
require 'acts_as_ferret'
ActsAsFerret::Remote::Server.new.send($ferret_server_action)
so, it seems that in some contexts, ENV['_'] is coming up with /bin/.
I just noticed that trunk has more sophisticated logic here:
#require(File.join(File.dirname(__FILE__), '../../../../config/
environment'))
if $ferret_server_options['root']
require File.join($ferret_server_options['root'], 'config',
'environment')
else
require(File.join(File.dirname(ENV['_']), '../config/environment'))
end
Jens-- how stable is trunk? Do you anticipate a point release any
time soon?
Thanks!
John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk