Ruby on Rails 3 + Apache2 + Phusion乘客:Bundler::GemNotFound exception。

时间:2020-11-30 00:19:51

I'm trying to deploy a Rails app on an Apache2 server by using Phusion Passenger. While everything works well locally, I am getting the infamous "Bundler::GemNotFound" error while deploying:

我正在尝试在Apache2服务器上使用Phusion Passenger的应用。虽然在本地一切都很好,但我却得到了臭名昭著的“Bundler: GemNotFound”错误。

Could not find abstract-1.0.0 in any of the sources (Bundler::GemNotFound)

All my gems are installed in my local home folder. Thus the passenger configuration lines from my Apache2 configuration file are as follows:

我所有的宝石都安装在本地的家庭文件夹中。因此,我的Apache2配置文件中的乘客配置行如下:

LoadModule passenger_module /home/regis/.gem/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /home/regis/.gem/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby1.8

I understand you would need more information to analyse the issue at hand, but I have no idea on how to diagnose this further.

我知道你需要更多的信息来分析这个问题,但是我不知道如何进一步诊断。

1 个解决方案

#1


33  

Try doing bundle install --path vendor/cache

尝试捆绑安装——路径供应商/缓存

#1


33  

Try doing bundle install --path vendor/cache

尝试捆绑安装——路径供应商/缓存