Running the DRb script

Hi,

I seem to have rather silly problem. I’m trying to run the script for
the DRb server in the acts_as_ferret trunk for setting up a centralized
index server. When I try to run script/runner
vendor/plugins/acts_as_ferret/script/ferret_server, I get a ruby error

/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27:
undefined local variable or method vendor' for #<Object:0x8090300> (NameError) from /opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:ineval’
from
/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27
from
/opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' from /opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
from script/runner:3

I’m guessing that eval is not able to run the ferret_server script. Is
there something basic that I’m doing wrong here?

Cheers

On Thu, Feb 15, 2007 at 07:53:43PM +0100, Subbu Balakrishnan wrote:

    from

/opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `eval’
from
/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27

I’m not sure but it might be that it won’t work with 1.1.6. At least I
didn’t test with this version of Rails.

You could try to copy the script to RAILS_ROOT/lib and just do
script/runner “require ‘ferret_server’”
maybe this will work.

Jens


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa