I had a rails 2.3 application running on apache + fcgi, and I am migrating it to rails 3.1 + rvm (+ apache + fcgi).
I am now blocked at fcgi <-> rvm.
I tried putting #!/usr/local/bin/rvm 1.9.2@rails31 exec ruby
inside my public/dispatch.fcgi
.
Running /usr/local/bin/rvm use 1.9.2@rails31 exec ruby /some_path/current/public/dispatch.fcgi
from my command line works fine, but the apache log shows:
ERROR: Unrecognized command line argument(s): '/some_path/current/public/dispatch.fcgi ' ( see: 'rvm usage' )
Any idea of what is going on ? How should configure things to make this work ?
Thanks for your answers.