Ramon Miguel M. Tayag
2008-Aug-14 14:27 UTC
[Backgroundrb-devel] Best Way Automatically Start BDRB?
Hey everyone! What would be the best way to automatically start backgroundrb? Like if the server crashes or reboots or something...? When I do it manually, I have to start it like this from the rails root directory: $ RAILS_ENV=production ruby script/backgroundrb start It seems that if I don''t put the RAILS_ENV var, it looks for development database. This is even if I edited config/backgroundrb.yml to use production. Thanks! -- Ramon Tayag
On 8/14/08, Ramon Miguel M. Tayag <ramon.tayag at gmail.com> wrote:> Hey everyone! > > What would be the best way to automatically start backgroundrb? Like > if the server crashes or reboots or something...? When I do it > manually, I have to start it like this from the rails root directory: >Use monit or something.> $ RAILS_ENV=production ruby script/backgroundrb start > > It seems that if I don''t put the RAILS_ENV var, it looks for > development database. This is even if I edited > config/backgroundrb.yml to use production. >If thats happening, its a bug. But, in git version, I have put some effort for making sure, this kinda thing never happens. What version you are using? If you are still facing this problem. send me your sample app as a tar ball (i.e, don''t send me your main project, create a sample rails app and try to simulate what happens).
Ramon Miguel M. Tayag
2008-Aug-14 14:50 UTC
[Backgroundrb-devel] Best Way Automatically Start BDRB?
Monit sounds great, but I got an error saying "RAILS_ENV=production" wasn''t a service or something like that. I''m using the git version, just downloaded it the other day. :o I''ll send you that Rails app off-list :) On Thu, Aug 14, 2008 at 10:39 PM, hemant <gethemant at gmail.com> wrote:> On 8/14/08, Ramon Miguel M. Tayag <ramon.tayag at gmail.com> wrote: >> Hey everyone! >> >> What would be the best way to automatically start backgroundrb? Like >> if the server crashes or reboots or something...? When I do it >> manually, I have to start it like this from the rails root directory: >> > > Use monit or something. > >> $ RAILS_ENV=production ruby script/backgroundrb start >> >> It seems that if I don''t put the RAILS_ENV var, it looks for >> development database. This is even if I edited >> config/backgroundrb.yml to use production. >> > > If thats happening, its a bug. But, in git version, I have put some > effort for making sure, this kinda thing never happens. What version > you are using? > > If you are still facing this problem. send me your sample app as a > tar ball (i.e, don''t send me your main project, create a sample rails > app and try to simulate what happens). >-- Ramon Tayag
Jonathan Wallace
2008-Aug-14 17:32 UTC
[Backgroundrb-devel] Best Way Automatically Start BDRB?
Here''s a link to a god configuration file I created for backgroundrb that has a custom condition for monitoring a particular worker as well. http://robotpoke.blogspot.com/2008/08/monitoring-backgroundrb-workers-with.html Jonathan On Thu, Aug 14, 2008 at 10:39 AM, hemant <gethemant at gmail.com> wrote:> On 8/14/08, Ramon Miguel M. Tayag <ramon.tayag at gmail.com> wrote: >> Hey everyone! >> >> What would be the best way to automatically start backgroundrb? Like >> if the server crashes or reboots or something...? When I do it >> manually, I have to start it like this from the rails root directory: >> > > Use monit or something. > >> $ RAILS_ENV=production ruby script/backgroundrb start >> >> It seems that if I don''t put the RAILS_ENV var, it looks for >> development database. This is even if I edited >> config/backgroundrb.yml to use production. >> > > If thats happening, its a bug. But, in git version, I have put some > effort for making sure, this kinda thing never happens. What version > you are using? > > If you are still facing this problem. send me your sample app as a > tar ball (i.e, don''t send me your main project, create a sample rails > app and try to simulate what happens). > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >
Ramon Miguel M. Tayag
2008-Aug-14 19:01 UTC
[Backgroundrb-devel] Best Way Automatically Start BDRB?
Thanks Jonathan, I''ll read up on that too! On Fri, Aug 15, 2008 at 1:32 AM, Jonathan Wallace <jonathan.wallace at gmail.com> wrote:> Here''s a link to a god configuration file I created for backgroundrb > that has a custom condition for monitoring a particular worker as > well. > > http://robotpoke.blogspot.com/2008/08/monitoring-backgroundrb-workers-with.html > Jonathan > > On Thu, Aug 14, 2008 at 10:39 AM, hemant <gethemant at gmail.com> wrote: >> On 8/14/08, Ramon Miguel M. Tayag <ramon.tayag at gmail.com> wrote: >>> Hey everyone! >>> >>> What would be the best way to automatically start backgroundrb? Like >>> if the server crashes or reboots or something...? When I do it >>> manually, I have to start it like this from the rails root directory: >>> >> >> Use monit or something. >> >>> $ RAILS_ENV=production ruby script/backgroundrb start >>> >>> It seems that if I don''t put the RAILS_ENV var, it looks for >>> development database. This is even if I edited >>> config/backgroundrb.yml to use production. >>> >> >> If thats happening, its a bug. But, in git version, I have put some >> effort for making sure, this kinda thing never happens. What version >> you are using? >> >> If you are still facing this problem. send me your sample app as a >> tar ball (i.e, don''t send me your main project, create a sample rails >> app and try to simulate what happens). >> _______________________________________________ >> Backgroundrb-devel mailing list >> Backgroundrb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/backgroundrb-devel >> >-- Ramon Tayag