When trying to start ferret with capistrano, I keep getting this:
$ cap services:ferret:stop
domain [redken.digitalpulp.com] :
user [john] :
Running the same command manually on the server, it is successful. I
have tried both as a regular user and as root.
Any ideas?
Thanks,
John
On Jan 25, 2008, at 4:35 PM, John B. wrote:
When trying to start ferret with capistrano, I keep getting this:
…
*** [err :: redken.digitalpulp.com] no such file to load – /bin/…/
config/environment
…
Running the same command manually on the server, it is successful.
I have tried both as a regular user and as root.
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/.
Thanks,
John
On Jan 25, 2008, at 4:53 PM, John B. wrote:
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