Skip to content

Commit

Permalink
fix errors related to load path and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemant Kumar committed Feb 14, 2008
1 parent 0be852b commit 14b5c53
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions script/backgroundrb
Expand Up @@ -6,17 +6,15 @@ PACKET_APP = rails_root + "/vendor/plugins/backgroundrb"
WORKER_ROOT = rails_root + "/lib/workers"
SERVER_LOGGER = rails_root + "/log/backgroundrb_server.log"

["server","framework","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")}
["server","server/lib","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")}
$LOAD_PATH.unshift(WORKER_ROOT)

require RAILS_HOME + '/config/boot.rb'
require "active_record"
require "active_support"
require "yaml"
require "erb"
require "logger"
require "logger"
require "packet"
require "backgroundrb_server"
require "backgroundrb_server"

case ARGV[0]
when 'start'
Expand Down Expand Up @@ -49,7 +47,7 @@ when 'stop'
rescue
puts $!
ensure
File.delete(path) if File.exists?(path)
File.delete(path) if File.exists?(path)
end
else
BackgrounDRb::MasterProxy.new()
Expand Down

0 comments on commit 14b5c53

Please sign in to comment.