如何将生产流星js数据库与开发同步? [英] How can I synchronize a production meteor js database with development?

查看:52
本文介绍了如何将生产流星js数据库与开发同步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚进入Meteor,对MongoDB来说也是新手.我习惯于同步MySQL数据库(生产与开发),以运行具有实时数据的新功能的测试.目前,我不知道如何用流星做到这一点.

I'm just getting into Meteor, and am similarly new to MongoDB. I am accustomed to syncing MySQL dbs (production vs dev) for running tests of new features with near-live data. At present, I don't know how to do this with meteor.

从此( http://docs.meteor.com/#meteormongo )我收集到我可以使用mongoDB shell来处理本地数据库,但是要查看 http://docs.mongodb .org/manual/mongo/,我还没有弄清楚这是否是我应该遵循的将流星同步的路径.

From this (http://docs.meteor.com/#meteormongo) I gather that I can use a mongoDB shell to work with my local db, but from looking at http://docs.mongodb.org/manual/mongo/, I haven't yet figured out if this is the path I should be following to sync things up for Meteor.

是否有人设置了一个相对简单的同步Meteor JS db的过程,或者您能指出我一些可以帮助我快速入门的资源吗?

Has anyone set up a relatively straightforward procedure for syncing Meteor JS db's, or can you point me to resources that might help me get up to speed?

推荐答案

不确定我是否理解了这个问题,但是:

Not sure I understood the question, but:

  1. 您可以通过设置MONGO_URL环境变量来选择正在使用的数据库
  2. 您可以转储来自一个数据库的数据并将其加载到另一个数据库(如果这就是你想做的事情
  1. You can choose the db you are working with by setting the MONGO_URL environment variable
  2. You can dump the data from one db and load it to another (if this is what you want to do)

这篇关于如何将生产流星js数据库与开发同步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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