When trying to start ferret with capistrano, I keep getting this: $ cap services:ferret:stop domain [redken.digitalpulp.com] : user [john] : * executing `services:ferret:stop'' * executing "cd /srv/rails/redken/current; script/ferret_server -e production stop" servers: ["redken.digitalpulp.com"] Password: [redken.digitalpulp.com] executing command *** [err :: redken.digitalpulp.com] no such file to load -- /bin/../ config/environment *** [err :: redken.digitalpulp.com] command finished command "cd /srv/rails/redken/current; script/ferret_server -e production stop" failed on redken.digitalpulp.com 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20080125/7efe9a4e/attachment.html
On Jan 25, 2008, at 4:35 PM, John Bachir 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20080125/4b11b1f5/attachment-0001.html
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20080131/2f8a292a/attachment.html