如何在Meteor项目中使用现有的MongoDB? [英] How do I use an existing MongoDB in a Meteor project?
本文介绍了如何在Meteor项目中使用现有的MongoDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设有一个用于GUI客户端的正在运行的MongoDB服务器(通过 wxPython )一会儿.
Let's say there is a running MongoDB server for a GUI client (by wxPython) for a while.
如何将新的Meteor项目连接到已经存在的MongoDB ?
How could I connect my new Meteor project to my already existing MongoDB?
推荐答案
使用环境变量MONGO_URL. 像这样:
Use the environment variable MONGO_URL. Something like:
export MONGO_URL=mongodb://localhost:27017/your_db
将your_db
替换为meteor
或您要使用的任何数据库.
Replace your_db
with meteor
or whatever db you want to use.
这篇关于如何在Meteor项目中使用现有的MongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文