supriya agarwal
2008-Apr-23 05:50 UTC
[Backgroundrb-devel] Problem with starting backgroundrb server!
Hi! Im using this backgroundrb plugin! The steps i followed for using this plugin are as follows: Kindly correct me where i went wrong! 1)rails_apps/app_name/ruby script/plugin install http://svn.devjavu.com/backgroundrb/trunk 2) rake backgroundrb:setup 3) ruby script/generate worker example 4)opened example_worker.rb and just wrote : 1. class ExampleWorker < BackgrounDRb::MetaWorker 2. set_worker_name :example_worker 3. def create(args = nil) 4. # this method is called, when worker is loaded for the first time 5. logger.info "here" 6. end 7. end after that i tried to run #ruby script/backgroundrb start and it gave me load error :bdrb_config.rb not found! I tried copying it to some directory and then ultimately it popped up another error : fork function is umimplemented on this machine! I have also installed the required gems :packets and chronic.. Can someone help me where i went wrong! or give me a step by step procedure to start backgroundrb running. Thanks in advance! Sup -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080423/8675ef7c/attachment.html
Dominik Langer
2008-Apr-23 07:12 UTC
[Backgroundrb-devel] Problem with starting backgroundrb server!
Hi Sup Regarding your first error (i.e., bdrb_config.rb; which you seem to have solved by yourself): I had the same error first, because after checkout I had backgroundrb in the wrong folder. - be sure that BackgrounDrb is installed in <your rails app base>/vendor/plugins/backgroundrb/ - this means bdrb_config.rb should be at <your rails app base>/vendor/plugins/backgroundrb/lib/bdrb_config.rb Regarding your second error (i.e., unimplemented fork function): - what kind operating system are you running? Fork is not implemented on Windows, but only on Unix/Linux machines. - If you are running Windows, switch to a Linux machine (a virtual machine on the same PC might also work) Cheers, Dominik supriya agarwal schrieb:> Hi! > > Im using this backgroundrb plugin! The steps i followed for using this > plugin are as follows: Kindly correct me where i went wrong! > > 1)rails_apps/app_name/ruby script/plugin install > http://svn.devjavu.com/backgroundrb/trunk > > 2) rake backgroundrb:setup > > 3) ruby script/generate worker example > > 4)opened example_worker.rb and just wrote : > > 1. class ExampleWorker < BackgrounDRb::MetaWorker > 2. set_worker_name :example_worker > 3. def create(args = nil) > 4. # this method is called, when worker is loaded for the first > time > 5. logger.info <http://logger.info> "here" > 6. end > 7. end > > after that i tried to run #ruby script/backgroundrb start > and it gave me load error :bdrb_config.rb not found! I tried copying > it to some directory and then ultimately it popped up another error : > fork function is umimplemented on this machine! > I have also installed the required gems :packets and chronic.. > > Can someone help me where i went wrong! or give me a step by step > procedure to start backgroundrb running. > Thanks in advance! > Sup > > > ------------------------------------------------------------------------ > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel