【问题标题】:Cannot deploy the application with capistrano & passenger to Centos无法将带有 capistrano 和乘客的应用程序部署到 Centos
【发布时间】:2017-04-03 09:23:19
【问题描述】:

我有 Centos 7。我已经安装了 Passenger 和 Apache。使用 Capistrano 将应用程序部署到服务器后。我得到了错误:

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

我已将工作文件夹的所有者组设置为 apache(并且没有人)。但这没什么。

我的 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>

谢谢。

【问题讨论】:

    标签: apache passenger ruby-on-rails-5 centos7 capistrano3


    【解决方案1】:

    我在目录中添加了一行:

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

    如果您想查看调试信息,可以添加以下行:

    PassengerFriendlyErrorPages on
    

    【讨论】:

      猜你喜欢
      • 2016-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-20
      • 1970-01-01
      • 2010-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多