Ruby on Rails 3 + Apache2 + Phusion 乘客:Bundler::GemNotFound 异常 [英] Ruby on Rails 3 + Apache2 + Phusion Passenger: Bundler::GemNotFound exception

查看:32
本文介绍了Ruby on Rails 3 + Apache2 + Phusion 乘客:Bundler::GemNotFound 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Phusion Passenger 在 Apache2 服务器上部署 Rails 应用程序.虽然在本地一切正常,但我在部署时遇到了臭名昭著的Bundler::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)

我所有的 gem 都安装在我的本地主文件夹中.因此,我的 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.

推荐答案

尝试bundle install --path vendor/cache

这篇关于Ruby on Rails 3 + Apache2 + Phusion 乘客:Bundler::GemNotFound 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆