MacOS X 10.5: wrong ruby path in rails dispatcher -> broken deployment

On MacOS X 10.5 the path for ruby in the three dispatcher-files inside of a rails project is wrong:

#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

It should be:

#!/usr/bin/ruby

Deployment of a rails application to an other unix or linux box is broken caulse of the wrong path :wink:

Test:

#!/bin/bash cd ~/Desktop rails broken_rails_dispatcher cd broken_rails_dispatcher/public cat dispatch.cgi | head -n 1 cat dispatch.fcgi | head -n 1 cat dispatch.rb | head -n 1

The workaround is to exchange the paths every time after creating a rails project...

regards jerry

On MacOS X 10.5 the path for ruby in the three dispatcher-files inside of a rails project is wrong:

#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

It should be:

#!/usr/bin/ruby

Deployment of a rails application to an other unix or linux box is broken caulse of the wrong path :wink:

Apple have obviously fiddled things since that's where rails is on
there boxes is fair enough. It's not like #!/usr/bin/ruby is a
catchall either, that's not where ruby is on our servers. This is why
#!/usr/bin/env ruby exists

Fred