Commit ae6ea9509877a82f9ce6a0dd82f340d4170a6a86

Don't use the OSX hard-coded path for ruby in the CGIs.

Commit diff

public/dispatch.cgi

 
1#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
1#!/usr/bin/env ruby
22
33require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
44
77require "dispatcher"
88
99ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10Dispatcher.dispatch
10Dispatcher.dispatch
toggle raw diff

public/dispatch.fcgi

 
1#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
1#!/usr/bin/env ruby
22#
33# You may specify the path to the FastCGI crash log (a log of unhandled
44# exceptions which forced the FastCGI instance to exit, great for debugging)
toggle raw diff

public/dispatch.rb

 
1#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
1#!/usr/bin/env ruby
22
33require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
44
77require "dispatcher"
88
99ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10Dispatcher.dispatch
10Dispatcher.dispatch
toggle raw diff