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/bin/listener | |
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/bin/listener')
-rw-r--r-- | railties/bin/listener | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/bin/listener b/railties/bin/listener index 2310282204..493ac9dca4 100644 --- a/railties/bin/listener +++ b/railties/bin/listener @@ -2,6 +2,7 @@ require "drb" ENV["RAILS_ENV"] = 'production' require "#{File.dirname(__FILE__)}/../config/environment.rb" require 'fcgi_handler' +require 'rbconfig' VERBOSE = false @@ -90,7 +91,10 @@ if ARGV.shift == 'start-listeners' if number > 1 fork do - exec 'ruby', __FILE__, 'start-listeners', tracker, (number - 1).to_s + exec( + File.join(Config::CONFIG['bin_dir'], Config::CONFIG['RUBY_SO_NAME']), + __FILE__, 'start-listeners', tracker, (number - 1).to_s + ) end end |