Commit ae6ea9509877a82f9ce6a0dd82f340d4170a6a86
- Date: Sun Apr 06 21:17:46 +0000 2008
- Committer: Dustin Sallings (dustin@spy.net)
- Author: Dustin Sallings (dustin@spy.net)
- Commit SHA1: ae6ea9509877a82f9ce6a0dd82f340d4170a6a86
- Tree SHA1: 705bcdaf9f023750df43548ef7018af971b8516e
Don't use the OSX hard-coded path for ruby in the CGIs.
Commit diff
| |   |
| 1 | | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby |
| 1 | #!/usr/bin/env ruby |
| 2 | 2 | |
| 3 | 3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) |
| 4 | 4 | |
| … | … | |
| 7 | 7 | require "dispatcher" |
| 8 | 8 | |
| 9 | 9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) |
| 10 | | Dispatcher.dispatch |
| 10 | Dispatcher.dispatch |
| toggle raw diff |
--- a/public/dispatch.cgi
+++ b/public/dispatch.cgi
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
@@ -7,4 +7,4 @@ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_
require "dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
-Dispatcher.dispatch
\ No newline at end of file
+Dispatcher.dispatch |
| |   |
| 1 | | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby |
| 1 | #!/usr/bin/env ruby |
| 2 | 2 | # |
| 3 | 3 | # You may specify the path to the FastCGI crash log (a log of unhandled |
| 4 | 4 | # exceptions which forced the FastCGI instance to exit, great for debugging) |
| toggle raw diff |
--- a/public/dispatch.fcgi
+++ b/public/dispatch.fcgi
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging) |
| |   |
| 1 | | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby |
| 1 | #!/usr/bin/env ruby |
| 2 | 2 | |
| 3 | 3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) |
| 4 | 4 | |
| … | … | |
| 7 | 7 | require "dispatcher" |
| 8 | 8 | |
| 9 | 9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) |
| 10 | | Dispatcher.dispatch |
| 10 | Dispatcher.dispatch |
| toggle raw diff |
--- a/public/dispatch.rb
+++ b/public/dispatch.rb
@@ -1,4 +1,4 @@
-#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
+#!/usr/bin/env ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
@@ -7,4 +7,4 @@ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_
require "dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
-Dispatcher.dispatch
\ No newline at end of file
+Dispatcher.dispatch |