Documentation says that I can start it manualy with rake task ‘rake
backgroundrb:start’. But how to start it automaticly when my rails
application starts?
e.g. When I run ‘mongrel_rails start’ … how to ensure that
BackgroundDRb starts as well?
Apparently you need to start backgroundrb before the server and the next
version will come with wrapper scripts that start backgroundrb and the
server for you.
Apparently you need to start backgroundrb before the server and the next
version will come with wrapper scripts that start backgroundrb and the
server for you.
when you start backgroundrb doesnt matter at all. you could even write
an
init script to start bgdrb at system startup!
when you start backgroundrb doesnt matter at all. you could even write an
init script to start bgdrb at system startup!
Or if you really need that. Then you can place the command “rake
backgroundrb:start” in your mongrel.conf file and ask mongrel to start
it.
Though this will help you, only when you are using mongrel.
write an init script to start bgdrb at system startup!
Or if you really need that. Then you can place the command “rake
backgroundrb:start” in your mongrel.conf file and ask mongrel to
start it. Though this will help you, only when you are using mongrel.
You need to make sure the drb server is started before rails starts
or you won’t be able to use it. Easiest way is to make a wrapper
script that starts the drb server and then starts rails. The new
version coming out this weekend will have scripts for this included.
-Ezra
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.