diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 19:49:40 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 19:49:40 +0000 |
commit | 1a7377a984ac850f74bfdad50c63f0c2c946f0a4 (patch) | |
tree | 9989526c4d82d4dd47a1f133b70f532c5482b909 /railties/dispatches | |
parent | 128e35261401a93a4b280ca32d2d4d9040b2f4a7 (diff) | |
download | rails-1a7377a984ac850f74bfdad50c63f0c2c946f0a4.tar.gz rails-1a7377a984ac850f74bfdad50c63f0c2c946f0a4.tar.bz2 rails-1a7377a984ac850f74bfdad50c63f0c2c946f0a4.zip |
Made gateway.cgi work with a ruby called anything
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/dispatches')
-rw-r--r-- | railties/dispatches/gateway.cgi | 5 |
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 |