Displaying 14 results from an estimated 14 matches for "database_yml".
2006 Sep 24
5
Can''t Connect to BackgroundRB
I''m having trouble getting backgroundrb up and running in a
production environment.
Here''s my backgroundrb.yml:
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: production
host: XXX.XX.XXX.50
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1 XXX.XX.XXX.51
order: deny,allow
I start BackgroundRB from XXX.XX.XXX.50 with script/backgroundrb/
start -d
I can then telnet localhost 22222 and connect to the drb server
However when I: telnet XXX.XX.XXX.50 22222 from the sa...
2007 Dec 30
3
A newbie question regarding BackgroundRb
...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: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
scheduled_task:
:class: :tx_reaper_worker
:worker_method: :do_work
:trigger_args:
:start: <%= Time.now %>
:repeat_interval: <%= 1.second %
=======
TxReaperWorker is my class which I gener...
2006 Aug 07
1
:load_rails
if CONFIG[''load_rails'']
ActiveRecord::Base.allow_concurrency = true
ActiveRecord::Base.establish_connection(YAML.load(ERB.new(IO.read
("#{RAILS_ROOT}/#{CONFIG[''database_yml'']}")).result)[CONFIG[''environment'']])
end
if i read the code right, this option doesnt really load rails. wouldnt it
be better (for those who rely on the config vars set in environment.rb) to
require(File.join(RAILS_ROOT, ''config'', ''envi...
2006 Dec 04
4
Question about acls
...y server (server2).
I looked through the source trying to figure out how to do this and I
pieced together this configuration file:
--
:port: 22222
:timer_sleep: 60
:pool_size: 15
:load_rails: true
:rails_env: development
:environment: development
:host: localhost
:uri: druby://localhost:22222/
:database_yml: config/database.yml
:protocol: druby
:acl:
:deny: all
:allow: localhost 127.0.0.1 server1
:order: deny,allow
autostart:
1:
job_key: chat_notifier
class: chat_notification_worker
Which runs on server2. (I know, some of the options probably don''t
belong there but w...
2007 Oct 12
0
Trouble on Multi Server setup
...l/2006-December/000576.html
In my setup, server1 will be the report server, and server2 and
server3 are the application/web servers
The backgroundrb.yml looks like this on servers 2 and 3:
port: 22223
timer-sleep: 60
load_rails: true
rails_env: production
environment: production
host: 172.16.0.1
database_yml: config/database.yml
pool_size: 10
(172.16.0.1 is the local IP for server1)
On the report server (server1), I have this:
port: 22223
timer-sleep: 60
load_rails: true
rails_env: production
environment: production
host: localhost
database_yml: config/database.yml
pool_size: 10
protocal: druby
:d...
2006 Aug 29
1
Tasks get executed twice with repeat_every
...ending due notes. The current time is Mon Aug 28 19:20:03 MDT 2006
Sending due notes. The current time is Mon Aug 28 19:20:03 MDT 2006
Is there any way to fix that? Here is my configuration file:
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
autostart:
1:
job_key: due_note_queuer1
class: due_note_queuer_worker
Thanks,
Martin
2006 Aug 07
2
uninitialized constants in worker class
...#39;
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1344:in `initialize''
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1624:in `start_service''
script/backgroundrb/start:84
[2] background.yml
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
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: xxxxx
socket: /var/lib/mysql/mysql.sock
i found that rake backgroundrb:start starts the server wi...
2007 Aug 08
3
Cannot start workers in production mode
...s going on here. BackgrounDRb::VERSION
reports I run version 0.2.1 of backgroundrb. I have version 1.2.1 of slave,
and version 1.0.6 of daemons installed. My backgroundrb.yml file is the
following:
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: production
host: 127.0.0.1
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
Hopefully someone can help me get through this, because I am in the middle
of deploying our first app, and it would suck to be delayed any more.
Thanks in advance!
David Balatero
-------------- next part -----...
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 06
6
Mutex::Synchronize with backgroundrb
I have a question concerning where to use the synchronize function. The
point of it is to put all of the code blacks passed to this function in
a queue. This make sure that code gets ran one at a time. This is
required when doing any kind of database activity in backgrondrb and
multiple threads. Otherwise I lose the connection to my database.
So here is my question:
Do I need to do:
@lock =
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...26) Starting BackgrounDRb Server
20070312-18:14:31 (24026) load_rails: true
20070312-18:14:31 (24026) uri:
drbunix:///tmp/backgroundrbunix_localhost_22222
20070312-18:14:31 (24026) config:
/home/david/redclay/config/backgroundrb.yml
20070312-18:14:31 (24026) temp_dir: /tmp
20070312-18:14:31 (24026) database_yml: config/database.yml
20070312-18:14:31 (24026) worker_dir: /home/david/redclay/lib/workers
20070312-18:14:31 (24026) protocol: drbunix
20070312-18:14:31 (24026) socket_dir: /tmp/backgroundrb.24026
20070312-18:14:31 (24026) environment: development
20070312-18:14:31 (24026) host: localhost
20070312-...
2006 Jul 17
2
Very strange after_save problem. Please help.
I have a very strange problem here. I do not get this. So any help is
greatly appreciated.
Basically I have a model that calls a method in the background
process in the "after_save" method. Let''s call the model products. So
what happens is this:
1. I create a new product.
2. Everything works and the product is saved with id 13.
3. A method is called in my background
2006 Jul 18
6
backgroundrb - Connection closed
Hello,
maybe someone can help with backgroundrb. I''ve written an application, which
makes use of backgroundrb. Everything works fine on my development machine, but
it crashes on my production server.
Something seems to be wrong with backgroundrb, but I don''t know the cause. All I
get is the error message attached below, which is extracted from the production.log.
I