search for: load_rails_env

Displaying 3 results from an estimated 3 matches for "load_rails_env".

2008 May 04
3
Rails Configuration in Workers
I override some Rails'' configuration options in my project, like: config.database_configuration_file = "#{RAILS_ROOT}/local/config/ database.yml" But they aren''t picked up in BackgroundRB because Rails ActiveRecord is just initialized directly in MasterWorker#load_rails_env: db_config_file = YAML.load(ERB.new(IO.read("#{RAILS_HOME}/ config/database.yml")).result) Is this an intentional design decision, or just simplest approach tha''s "good enough?" Personally, I''d prefer that my Rails'' environment was initial...
2008 Apr 11
3
does backgroundrb server need rails environment?
Hi everyone, I noticed that script/backgroudrb requires config/environment which causes the backgroundrb server as well as the log worker to ''bloat'' to 35MB each. I am kind of sensitive to memory issues, so I patched the code and essentially moved the require of environment from script/backgroundrb to the meta_worker. Everything seems good and now both backgroundrb server and
2007 Dec 24
2
backgroundrb script crashing on startup
....rb:496:in `require'' from /var/www/apps/rpg/releases/20071224034514/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb:2 ... 44 levels... from /var/www/apps/rpg/releases/20071224034514/vendor/plugins/backgroundrb/server/master_worker.rb:156:in `load_rails_env'' from /var/www/apps/rpg/releases/20071224034514/vendor/plugins/backgroundrb/server/master_worker.rb:143:in `initialize'' from script/backgroundrb:39:in `new'' from script/backgroundrb:39 - Jason L. -- My Rails and Linux Blog: http://offtheli...