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
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