我有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>
感谢。
答案 0 :(得分:1)
我在目录中添加了一行:
PassengerRuby /home/kanna/.rvm/gems/ruby-2.3.3/wrappers/ruby
如果要查看调试信息,可以添加以下行:
PassengerFriendlyErrorPages on