I am running ferret (0.11.4) and acts_as_ferret (stable from svn) in a
rails 1.2.3 app in production using the DRb server. I recently upgraded
my configuration and the method with which I start and stop the server
no longer works: Here is the command I would like to use (and have used
in the past) to start the aaf server:
$ /Library/WebServer/rails/ccdb/current/script/runner -e production
/Library/WebServer/rails/ccdb/current/script/ferret_start
/opt/local/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:9090
- #<Errno::ECONNREFUSED: Connection refused - connect(2)>
(DRb::DRbConnError)
from /opt/local/lib/ruby/1.8/drb/drb.rb:729:in `each'
from /opt/local/lib/ruby/1.8/drb/drb.rb:729:in `open'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1169:in `new'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1169:in `open'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
from /opt/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
... 28 levels...
from
/Library/WebServer/rails/ccdb/current/script/../config/../vendor/rails/railties/lib/commands/runner.rb:39:in
`require'
from
/Library/WebServer/rails/ccdb/current/script/../config/../vendor/rails/railties/lib/commands/runner.rb:39
from /Library/WebServer/rails/ccdb/current/script/runner:3:in
`require'
from /Library/WebServer/rails/ccdb/current/script/runner:3
Strangely the follwoing command works:
$ cd /Library/WebServer/rails/ccdb/current && RAILS_ENV=production
/Library/WebServer/rails/ccdb/current/script/ferret_start
Starting ferret DRb server...Done.
I would simply switch to that but I am on an Xserve and I'm using
launchd to start the aaf server on reboot. launchd does not seem to
like the command that works.
Anyone know why I would get a DRbConnError when using script/runner?
Thanks in advance,
Tom
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk