更改 gemets 以与 Dreamhost 上的 Passenger 兼容
我开始了另一篇文章:
但经过一番挖掘后我认为我的宝石不相容。我的 Dreamhost Passenger 使用 Rails 3.0.3,我的开发系统使用 3.1.3。我一直在使用 rvm 和 gem,但我不知道如何强制 Rails 和 v3.0.3 依赖项。
谁能确认这是我的问题,如果是的话我该从哪里开始?我确信我错过了一些明显的东西,但到目前为止我所有的谷歌搜索都空手而归。
我对 Rails 还很陌生,整个 gem 概念仍然让我很头疼,这可能是我迄今为止遇到的问题:^)
I had another post started:
Rack / Passenger fails on Dreamhost
but after some digging I am thinking my gems are incompatible. My Dreamhost Passenger uses Rails 3.0.3 and my dev system has 3.1.3. I have been playing around with rvm and gem but I can't figure out how to force rails and v3.0.3 dependancies.
Can anyone confirm that this is my issue and if so where do I start? I am sure I am missing something obvious but all my Googling has come up empty handed so far.
I am pretty new to Rails and the entire gem concept still hurts my brain and this is probably have the issue I have so far :^)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的解决方案是将您的 gemfile 中的乘客条目编辑为:
然后在您的开发计算机上运行
bundle update Passenger
。我真的强烈建议您考虑使用 rbenv 或 rvm 来安装和管理与 Dreamhost 已安装的系统 gem 分开的 ruby 和 gem。我不确定这是否超出了他们的条款,但您应该能够为您的用户本地安装。这将帮助您避免将来使用其他宝石时出现同样的问题。
The simple solution is to edit the passenger entry in your gemfile to this:
and then run
bundle update passenger
on your dev machine.I would really highly recommend you look into using rbenv or rvm to install and manage ruby and gems separate from the system gems that Dreamhost has installed though. I'm not sure if that's outside their terms, but you should be able to install locally for your user. This will help you avoid the same problem with other gems in the future.