Displaying 3 results from an estimated 3 matches for "current_server".
2007 Apr 10
0
Multiple after_deploys in deploy.rb
...e second after_deploy clobbers the first even
though they are meant for different roles. I do a workaround now by
making role a use after_symlink, but now I am adding a few more roles
and I am running out of after_* to workaround. Is there a way to do the
following
task :after_deploy do
if current_server.role == :rolea
run "task a"
elsif current_server.role == :roleb
run "task b"
end
end
Thanks in advance for the help.
-Curtis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups...
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
...e the Ferret DRB server to avoid concurrency issues when
using multiple mongrels. I can successfully add and edit data on my
index via the DRB server, however, when I search the index, I get the
following error:
DRb::DRbConnError (DRb::DRbServerNotFound):
/usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server''
/usr/lib/ruby/1.8/drb/drb.rb:1709:in `to_id''
/usr/lib/ruby/1.8/drb/drb.rb:1045:in `initialize''
/usr/lib/ruby/1.8/drb/drb.rb:639:in `make_proxy''
/usr/lib/ruby/1.8/drb/drb.rb:556:in `dump''
/usr/lib/ruby/1.8/drb/drb.rb:600:in `send_requ...
2007 Apr 03
5
Inifinite loop problem with DRb server
...lay_name)
end
# app/controllers/search_controller.rb
class SearchController < ApplicationController
def quick
@results = Email.id_multi_search(params[:q], %w(Contact Company))
end
end
# Backtrace
stack level too deep
(druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1649:in
`current_server''
(druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1704:in `to_obj''
(druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1079:in
`method_missing''
(druby://127.0.0.1:3000)
/home/francois/src/xlsuite.org/vendor/plugins/acts_as_ferret/lib/remote_index.rb:25:...