Hello,
where (in which file/object) would I invoke the startup of the DRb
server to
support a rails application?
It wouldn’t be config/boot.rb ?
How would I shut it down cleanly?
Greetings
Michael K.
Hello,
where (in which file/object) would I invoke the startup of the DRb
server to
support a rails application?
It wouldn’t be config/boot.rb ?
How would I shut it down cleanly?
Greetings
Michael K.
On Mar 20, 2006, at 6:59 AM, Michael K. wrote:
Hello,
where (in which file/object) would I invoke the startup of the DRb
server to support a rails application?It wouldn’t be config/boot.rb ?
How would I shut it down cleanly?
Michael,
I start the DRb server as a separate process:
./script/runner RemoteServer.start
In testing, I just run/kill the process in the terminal.
In prod, I have a script: /etc/rc.d/drb
You should probably use PIDs and startproc, etc., but I just stop it
with:
pkill -KILL -f ‘RemoteServer’
I imagine there is a way to install a Ruby script as a Windows
Service, too.
Hope that helps,
Scott
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs