Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在我的 rails 应用程序中访问 MongoHQ db,我需要在 db 上执行搜索并在我的 rails 应用程序上获取结果。我是第一次使用 mongo db,所以请更具体,谢谢
嗨,我已经完成了 mongoid 但如果您不使用 mongoid,您可以手动指定连接,在您的 mongoid.yml 或您指定连接的任何地方您的连接参数看起来像
MONGOID_DATABASE = "数据库名称" MONGOID_HOST = 火焰.mongohq.com MONGOID_PASSWORD = 密码 MONGOID_PORT = 27064
MONGOID_DATABASE = "数据库名称"
MONGOID_HOST = 火焰.mongohq.com
MONGOID_PASSWORD = 密码
MONGOID_PORT = 27064