没有这样的文件来加载 Rails 3 的打包器错误 [英] No such file to load bundler error for Rails 3

查看:40
本文介绍了没有这样的文件来加载 Rails 3 的打包器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Rails 3 应用程序可以登台.

I have a Rails 3 app ready for staging.

我还没有设置 VPS 主机.因为我计划在最初几个月将所有内容都放在共享主机上.

I haven't got a VPS host set up yet. As I was planning to have everything on shared host for the first few months.

问题:

cd myapp捆绑检查结果:

cd myapp bundle check result:

The Gemfile's dependencies are satisfied

乘客错误:

Error message:
    no such file to load -- bundler
Exception class:
    LoadError

关于共享主机的令人沮丧的事情是我必须在 config.ru 上添加这些行:

Frustrating thing about shared hosts is that I have to add these lines on config.ru:

ENV['GEM_HOME'] = '/home/username/.gems'
ENV['GEM_PATH'] = '$GEM_HOME:/usr/lib/ruby/gems/1.8'

仍然没有运气.同样没有出现加载捆绑器错误的此类文件.

Still no luck. Same no such file to load bundler error appears.

有人用过吗?Rails 3、Debian、共享主机(dreamhost)?

Has anybody got this working? Rails 3, Debian, shared host (dreamhost)?

我可以继续在 Slicehost/Fivebean 上注册,但在此之前,我想知道为什么会出现该错误.

I could just go ahead and register on Slicehost/Fivebean but before I do, I'd like to know why that error is showing up.

谢谢.

推荐答案

解决方案在这里 http://rvm.beginrescueend.com/integration/passenger/.您需要将 HTTP 服务器指向 passenger_ruby 包装器,而不是 bin/ruby.

The solution is here http://rvm.beginrescueend.com/integration/passenger/. You need to point your HTTP server to passenger_ruby wrapper instead of bin/ruby.

例如用于 RVM &Apache 应该是这样的:

E.g. for RVM & Apache it should be something like that:

PassengerRuby /Users/username/.rvm/bin/passenger_ruby

这篇关于没有这样的文件来加载 Rails 3 的打包器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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