本文介绍了Ruby on Rails的3 +的Apache2 +的Phusion乘客:捆扎机:: GemNotFound例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用Phusion的乘客部署的Apache2服务器上的Rails应用程序。虽然一切正常在本地,我得到了臭名昭著的捆扎机:: GemNotFound的错误,同时部署:
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:
Could not find abstract-1.0.0 in any of the sources (Bundler::GemNotFound)
我所有的宝石都安装在我的本地主文件夹。因此,从我的Apache2配置文件中的乘客配置行如下:
All my gems are installed in my local home folder. Thus the passenger configuration lines from my Apache2 configuration file are as follows:
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.
推荐答案
试着做捆绑安装--path供应商/缓存
这篇关于Ruby on Rails的3 +的Apache2 +的Phusion乘客:捆扎机:: GemNotFound例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!