Displaying 20 results from an estimated 3000 matches similar to: "regarding problem backgroundrb setup(new to ruby on rails)"
2006 Sep 15
2
unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb
i ran rake backgroundrb:setup and modified the default
config/backgroundrb.yml file as:
---
port: "22223"
timer_sleep: 60
load_rails: true
environment: production
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
and my database.yml
production:
adapter: mysql
database: chip2_production
username: xxxxx
password:
2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class.
The following line in my test (created from script/generate worker
Test) throws an error:
worker = TestWorker.new(:test_string => "testing...")
Error:
/activesupport/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant BackgrounDRb (NameError)
from
2006 Oct 16
3
backgroundrb.yml not generated
I''m trying to do the tutorial at http://www.infoq.com/articles/BackgrounDRb. A little more than half-way through it says "Upon instalation, the plugin writes a config file into RAILS_ROOT/config/backgroundrb.yml." It didn''t happen for me.
I installed the plugin with:
ruby script\plugin install svn:\\rubyforge.org//var/svn/backgroundrb
It added a bunch of files,
2006 Jul 31
1
Starting backgroundrb from rails and restarting with rails
Hi,
I have my rails sites tricked out with capistrano, and backgroundrb, so
I can easily use the ant tasks, but I would like to be able to start and
stop backgroundrb from within rails.
I have a few reasons for this:
1. Using fastcgi, backgroundrb would start under the apache user and the
same mod_security context as apache, instead of my developer account
which has many more privileges.
2.
2007 Nov 30
1
backgroundrb not cleaning up tmp files?
I just had an interesting issue on a production system that has been
running nicely for about a year. There were approximately 10,000
backgroundrb temp files in the /tmp directory. It looks like
backgroundrb wasn''t cleaning them up.
I noticed it with the following error:
DRb::DRbConnError: drbunix:///tmp/backgroundrb.20015/
backgroundrb_logger_0_0.101544829808665 -
2007 Feb 07
2
ncluding backgroundrb issue
I have the next including files structure :
- controller fileaA.rb including line (#8): require "fileB"...
- /lib/fileB.rb with main header: load ''backgroundrb/worker.rb''
load ''backgroundrb/
worker_rails.rb''
class FileB <
2007 Feb 28
2
backgroundrb 0.2.1 not supported on windows platform?
Hi all,
I want to execute certain ruby script periodically in
my rails application running on windows platform.
I wanted to try out backgroundrb, but it seems that
the support for Windows is deprecated with release
0.2.0 of BackgrounDRb.
The latest release is 0.2.1 & the plugin still doesnt
support windows platform. Can anyone throw more light
on this?
Also, can anyone suggest any
2006 Jul 26
4
BackgrounDRb - uninitialized constant
I installed BackgrounDRB as instructed:
script/plugin install svn://rubyforge.org//var/svn/backgroundrb
rake backgroundrb:setup
I started it with:
rake backgroundrb:start
In a model I make the call:
MiddleMan.new_worker :class => :rss_worker
In /lib/workers I have file rss_worker.rb, which contains the class:
Class RssWorker < BackgrounDRb::Rails
def do_work(args)
...
end
end
2006 Nov 09
2
Multiple backgroundrb servers?
What are people are doing when they need to deploy a new code base? You
can''t just restart backgroundrb, because then you lose any long-running
backgroundrb processes. But then you''d conceivably have to wait several
hours for all your procs to complete before pushing out the new code base.
I was originally thinking that during code deploys, we''d start up a second
2007 Jun 04
2
backgroundrb scheduler
I''ve been having a terrible time with the backgroundrb scheduler. The
issues I''m having is that the scheduled actions aren''t ran at all and if
they do, the process stays around forever. I''m using the backgroundrb as a
nightly cron to run some accounting operations.
questions:
1. How can I have the process destroyed after the worker completes?
2. Any idea on
2007 Dec 14
4
Error when loading backgroundrb
I''m getting the following error (when doing script/backgroundrb start)
on my local machine, which is running os x 10.4.11. However, it
works just fine on my linux server.
RAILS_ROOT/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:64:in
`dump_object'': undefined method `write_nonblock'' for #<UNIXSocket:
0x135b5f4> (NoMethodError)
I just grabbed the
2007 Dec 30
3
A newbie question regarding BackgroundRb
Hi all,
I just read Ezra''s article on BackgroundRb and decided to use it one
of my projects. I installed the plugin into my rails project using
script/plugin and then ran rake backgroundrb:setup to copy the yml
scripts.
Now my backgroundrb.yml looks like
=======
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml:
2008 Sep 21
3
Monit; BackgroundRB; environment variables
I started emailing monit mailing list because I started getting this
problem where I couldn''t start backgroundrb with monit anymore,
thinking it was a monit problem. However, I back tracked a bit since
I had added code to my project, and monit was able to start
backgroundrb again.
I seem to have zeroed in on the problem. I''m not sure where the
problem lies - maybe monit or
2008 May 21
3
Does backgroundrb support SSL?
Does backgroundrb support SSL like drb? I was unable to find any sample
configurations including SSL. Any help would be appreciated, thanks. -jim
salinas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080521/9588825a/attachment.html>
2006 Aug 01
3
Multiple Instances Of backgrounDRb
I have an application setup as follows:
Core code is in:
/home/subdomain1/current
accessed at subdomain1.domain.com
I then have various instances of this app that are sym-linked to the
core (minus a custom config file and views) setup like:
/home/subdomain2/current
accessed at subdomain2.domain.com
I have backgrounDRb running to update a cache of RSS files.
Is there a way to get all
2006 Dec 04
1
no method error when starting backgroundrb
I just installed backgroundrb on our server. When tryin to start via
script/backgroundrb i get a no method error.
./script/backgroundrb start
/home/tom/ralf_dev/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:34:in
`format_message'': undefined method `strftime'' for "2006-12-04T15:53:
23.419225 ":String (NoMethodError)
from
2006 Jun 21
4
one more suggestion for backgroundrb
this:
Index: script/backgroundrb/lib/backgroundrb.rb
===================================================================
--- script/backgroundrb/lib/backgroundrb.rb (revision 16)
+++ script/backgroundrb/lib/backgroundrb.rb (working copy)
@@ -29,7 +29,11 @@
# the log via @logger
def initialize(args)
@logger = BACKGROUNDRB_LOGGER
- Thread.new { do_work(args) }
+
2008 Mar 09
1
Multiple deployments of same application using backgroundrb
Thanks for this great app. I am having some problems configuring it in my
server. I have a single app deployed three times, one is for testing, one is
for demoing and the other one is for production.
I read that it was unnecesary and it will not work to have multiple
instances of backgroundrb for each of my deployments. I read that it was
enough to instantiate backgroundrb only once from one of
2006 Jun 22
1
Models and Backgroundrb
Hi Erza,
I am using login engine in my code...and i get the error "uninitialized
constant LoginEngine and uninitialized constant LoginEngine", when i try to
do a find in the worker code!!!
Why am i getting this error?
--
nothing much to talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Apr 03
2
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