1

我有一个 Rails 3.2 应用程序,我正在尝试使用 Mongoid 和 MongoHQ 在 Heroku 上运行,我发现我必须使用不同版本的 Mongoid gem 来进行本地开发与 Heroku。
这是我发现的;

要让应用程序在 Heroku 和 MongoHQ 上运行,我必须使用 Mongoid 2.4.11 要让应用程序在本地运行,我必须使用 Mongoid 3.0.0.rc

这是我得到的错误;

Mongoid 2.4.10 本地,

undefined class/module Moped::  

Heroku/MongoHQ 上的 Mongoid 3.0.0.rc

We're sorry, but something went wrong.

为什么不兼容?

4

0 回答 0