Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for loading in foreground mode

  • Loading branch information...
commit 8a2950450aec67fab08d038574021ae2dc3f1410 1 parent b25737c
@gnufied authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 script/backgroundrb
View
5 script/backgroundrb
@@ -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"
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.