« San Francisco 2005 - WWDC and more... |  main  | see and the subversion command line »

Random Rails Bits - "Universal Applications"

Posted by dom on Wed Jun 22 12:21:26 +0200 2005

When creating your rails app, you’d probably want it to be able to run on almost any machine in the net. Problem being: There are quite some different path for ruby to be installed in, not every provider puts ruby in /usr/bin/ruby. So one way to have some indirection there is to use the following shebang:

#!/usr/bin/env ruby

Unfortunately in a rails application there are many many executable ruby scripts. Thankfully the rails guys have added an option to their rails command line utility, the one that generates rails apps. So I recommend you use:

rails APPLICATIONNAME --ruby "/usr/bin/env ruby"

from now on to generate your “universal” rails applicaitons ;-).

no responses to 'Random Rails Bits - "Universal Applications"'

write a comment.... (textile enabled)
author
email
url
Body