由于发生产卵错误,无法检出会话

我试图让我的Rails应用程序在我的VPS上工作。 我部署了我的项目,创build了数据库并迁移了它。 但是当我访问该页面时,我收到一条消息:

We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. 

我的nginx错误日志告诉我这个:

 App 12380 stdout: App 12380 stderr: *** ERROR ***: Cannot execute /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: No such file or directory (2) [ 2014-11-03 11:44:12.9549 12050/7fd1a0bb8700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /home/deploy/wisemonkeys/current: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Error ID: 20eb13ee Error details saved to: /tmp/passenger-error-dyuK5v.html Message from application: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br> <h2>Raw process output:</h2> <pre> *** ERROR ***: Cannot execute /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: No such file or directory (2) </pre> [ 2014-11-03 11:44:12.9630 12050/7fd19e833700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 20] Cannot checkout session because a spawning error occurred. The identifier of the error is 20eb13ee. Please see earlier logs for details about the error. 

我试着去读https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems,但是现在对我来说太过于技术了。

发现问题。 我没有使用RVM /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby:在我的/etc/nginx/nginx.conf我有

 passenger_ruby /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby; 

但我需要有:

 passenger_ruby /home/deploy/.rbenv/shims/ruby;