Cannot execute /usr/bin/ruby: No such file or directory on ubuntu server using RVM

青春壹個敷衍的年華 提交于 2019-12-24 14:23:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!