问题
I am trying to run rails app in production on Ubuntu server, but it shows message that something went wrong. And in apache logs i found this:
An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read Raw process output:
* ERROR *: Cannot execute /usr/bin/ruby: No such file or directory (2)
Note that i am using rvm and my ruby path is different
Using SSH everything works fine.
来源:https://stackoverflow.com/questions/30062381/cannot-execute-usr-bin-ruby-no-such-file-or-directory-on-ubuntu-server-using-r