Displaying 6 results from an estimated 6 matches for "backgroundrb_root".
2007 Feb 16
1
Starting / stopping background rb when apache starts/stops
Hello -
I would like to figure out a way to have backgroundrb start/stop with the
same UID that dispatch.fcgi uses, at the same point in time that apache is
started/stopped. I see a technique that seems plausable in this archive
message:
http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000723.html
which addresses the starting aspect, in a lazy fashion. That seems fine,
2007 Apr 23
0
Using mapped database connections
...f database references. I also had a quick play
with loading up irb and then requiring the config/boot.rb and config/
environment.rb files. Once I had done this I could access all my
Rails models as I would expect.
So I was wondering why the RailsBase class tries to do more than just
require BACKGROUNDRB_ROOT + ''/config/boot.rb''
require BACKGROUNDRB_ROOT + ''/config/environment.rb''
if BackgrounDRb needs to set its own rails_env so that it can use a
different database or something like that then ENV[''RAILS_ENV''] would
need to be set before requir...
2008 Mar 25
1
extending bdrb / running multiple servers
...ual, it''s
not in there. My solution so far is to subclass WorkerProxy, with a
new init method that takes the host and port as parameters:
class BackgrounDRb::CustomProxy < BackgrounDRb::WorkerProxy
def self.init(ip, port)
@@config = BackgrounDRb::Config.read_config("#{BACKGROUNDRB_ROOT}/
config/backgroundrb.yml")
@@server_ip = ip
@@server_port = port
new
end
end
But this doesn''t seem very elegant to me, I worry about future
software updates... Is there a clean method for doing this or is this
just not supported (yet)?
Thanks for any insight...
2007 Nov 02
10
pre-release version of backgroundrb available now from svn
...re no install scripts, but you should copy "backgroundrb" file
from script directory of plugin to script directory of rails. You
should also config "backgroundrb.yml" file from config directory of
plugin to config directory of rails root.
There is one sample worker available in
BACKGROUNDRB_ROOT/sample_worker directory.
There is also a sample client available.
Currently, passing of ActiveRecord objects is not supported. Although,
We can do that, but in most situations, passing ''id'' of object is
enough i thought. Also, you may encounter some bugs when you are
passing larg...
2007 Jan 19
6
Stopping DRb after using BackgrounDRb::MiddleManDRbObject.init
Hi,
I''m having a problem where connections started through
BackgrounDRb::MiddleManDRbObject.init are not stopped, resulting in an
ever growing established connections between my Mongrels and remote
backgroundrbs
I added DRb.stop_service to my code executed after requests that init
MiddleManDRbObjects but that does not help.
Any ideas?
Thanks,
Robert Bjarnason
2006 Nov 20
4
Production RAILS_ENV / DB Selection
Hey all,
I''m having some issues moving a project that incorporates Backgroundrb onto
a staging server... For some reason (surely of my own doing), my RailsBase
workers are insisting on using trying to access my development DB instead of
my "production" DB.
When I try to load a model object from within a worker, I get the following:
20061120-21:54:28 (26296)