Kit Plummer
2008-Apr-03 17:15 UTC
[Backgroundrb-devel] Two Rails Apps, One Backgroundrb Server?
This might be a really simple question, with a simple solution. I have two rails apps running on the same box. Right now I am starting two Backgroundrb servers (11006 and 11007). Wondering if it might be possible to run only one and have the second app point to the first app''s server? TIA, Kit
Ivan S. Manida
2008-Apr-09 09:26 UTC
[Backgroundrb-devel] Two Rails Apps, One Backgroundrb Server?
Of course that is possible (just specify the same port and run it from one of the apps), but the bdrb server will only load models for the one you start it from, so if they are different tasks will fail (unless you don''t use application''s models in the workers). Kit Plummer wrote:> This might be a really simple question, with a simple solution. I > have two rails apps running on the same box. Right now I am starting > two Backgroundrb servers (11006 and 11007). Wondering if it might be > possible to run only one and have the second app point to the first > app''s server? > > TIA, > Kit > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel
Kit Plummer
2008-Apr-09 12:06 UTC
[Backgroundrb-devel] Two Rails Apps, One Backgroundrb Server?
Yes, this is my problem...getting the workers to start. On Apr 9, 2008, at 2:26 AM, Ivan S. Manida wrote:> Of course that is possible (just specify the same port and run it > from one of the apps), but the bdrb server will only load models for > the one you start it from, so if they are different tasks will fail > (unless you don''t use application''s models in the workers). > > > Kit Plummer wrote: >> This might be a really simple question, with a simple solution. I >> have two rails apps running on the same box. Right now I am >> starting two Backgroundrb servers (11006 and 11007). Wondering if >> it might be possible to run only one and have the second app point >> to the first app''s server? >> TIA, >> Kit >> _______________________________________________ >> Backgroundrb-devel mailing list >> Backgroundrb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/backgroundrb-devel