S
Sal Syed
Hi,
I'm trying to run Webrick and DRb on the same program. I run them on
different ports. The problem is they both try to take over the entire
process
$user[:drbserver]=DistributedSearch.new($user,$database)
DRb.start_service("druby://localhost:#{$config[:drbport]}",$user[:drbserver])
puts "Starting server process"
# Start the server thread.
server.start
The following code stops and I never get to start the webserver.
Can someone help? I'm new to ruby not sure how to set these up to run in
their own threads properly.
I'm trying to run Webrick and DRb on the same program. I run them on
different ports. The problem is they both try to take over the entire
process
$user[:drbserver]=DistributedSearch.new($user,$database)
DRb.start_service("druby://localhost:#{$config[:drbport]}",$user[:drbserver])
puts "Starting server process"
# Start the server thread.
server.start
The following code stops and I never get to start the webserver.
Can someone help? I'm new to ruby not sure how to set these up to run in
their own threads properly.