Skip to content

Commit

Permalink
fix for loading in foreground mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Apr 22, 2009
1 parent b25737c commit 8a29504
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/backgroundrb
Expand Up @@ -9,7 +9,9 @@ WORKER_LOAD_ENV = File.join(RAILS_HOME,"script","load_worker_env")
$LOAD_PATH.unshift(WORKER_ROOT)

require 'rubygems'
require "active_support"
require 'bdrb_config'

BDRB_CONFIG = BackgrounDRb::Config.read_config("#{RAILS_HOME}/config/backgroundrb.yml")
PID_FILE = "#{RAILS_HOME}/tmp/pids/backgroundrb_#{BDRB_CONFIG[:backgroundrb][:port]}.pid"
SERVER_LOGGER = "#{RAILS_HOME}/log/backgroundrb_debug_#{BDRB_CONFIG[:backgroundrb][:port]}.log"
Expand All @@ -34,10 +36,7 @@ else
require "packet"
require "optparse"

require "bdrb_config"
require RAILS_HOME + "/config/boot"
require "active_support"

BackgrounDRb::Config.parse_cmd_options ARGV

require RAILS_HOME + "/config/environment"
Expand Down

0 comments on commit 8a29504

Please sign in to comment.