aboutsummaryrefslogtreecommitdiffstats
path: root/railties/dispatches/gateway.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'railties/dispatches/gateway.cgi')
-rw-r--r--railties/dispatches/gateway.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/dispatches/gateway.cgi b/railties/dispatches/gateway.cgi
index b8d44acef2..d9f0c17846 100644
--- a/railties/dispatches/gateway.cgi
+++ b/railties/dispatches/gateway.cgi
@@ -2,8 +2,9 @@
# This is an experimental feature for getting high-speed CGI by using a long-running, DRb-backed server in the background
-require File.join(File.dirname(__FILE__), 'drb')
+require 'drb'
require 'cgi'
+require 'rbconfig'
VERBOSE = false
@@ -19,7 +20,7 @@ def start_tracker
STDIN.reopen "/dev/null"
STDOUT.reopen "/dev/null", "a"
- exec 'ruby', tracker_path, 'start', ConnectionUri
+ exec(File.join(Config::CONFIG['bin_dir'], Config::CONFIG['RUBY_SO_NAME']), tracker_path, 'start', ConnectionUri)
end
$stderr.puts "dispatch: waiting for tracker to start..." if VERBOSE