使用外部mongodb进行meteor开发 [英] Using external mongodb with meteor development

查看:83
本文介绍了使用外部mongodb进行meteor开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Accounts-ui 包的 Meteor 服务器代码是这样启动的:

A Meteor server code uses Accounts-ui package gets started like this:

appDir$ MONGO_URL=mongodb://username:password@cloud-host-url meteor

创建账号后,用户文档在云主机的mongodb中没有出现,但在本地mongodb副本中出现.
如何正确使用云mongodb?

After creating the account, the user document fails to show up in the mongodb on the cloud-host but shows up in the local mongodb copy.
How can I correctly use the cloud mongodb?

推荐答案

我认为问题在于你如何设置 MONGO_URL,在你的 CLI 中试试这个:

I think the problem is how you set your MONGO_URL, try this in your CLI:

export MONGO_URL=mongodb://username:password@mongo_link &&流星

这篇关于使用外部mongodb进行meteor开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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