无法将应用程序与capistrano&passenger部署到Centos

问题描述:

我有Centos 7.我已经安装了Passenger & Apache。使用Capistrano将应用程序部署到服务器之后。我得到的错误:无法将应用程序与capistrano&passenger部署到Centos

Could not find rake-12.0.0 in any of the sources (Bundler::GemNotFound) 

我已经将工作文件夹的所有者组设置为apache(和nobody)。但它没什么。

我的Apache配置:

<VirtualHost *:80> 
    ServerName ... 
    # Be sure to point to 'public'! 
    DocumentRoot /home/kanna/www/bb/current/public 
    <Directory /home/kanna/www/bb/current/public> 
     # Relax Apache security settings 
     AllowOverride all 
     Require all granted 
     # MultiViews must be turned off 
     Options -MultiViews 
     SetEnv GEM_HOME /home/kanna/www/bb/shared/bundle/ruby/2.3.0/gems 
    </Directory> 
</VirtualHost> 

感谢。

我添加的行进入目录:

PassengerRuby /home/kanna/.rvm/gems/ruby-2.3.3/wrappers/ruby 

如果你想看到调试信息,您可以添加一行:

PassengerFriendlyErrorPages on