有没有一种简单的方法可以从流星部署的应用程序中导出数据? [英] Is there a simple way to export the data from a meteor deployed app?

查看:27
本文介绍了有没有一种简单的方法可以从流星部署的应用程序中导出数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以从流星部署的应用程序中导出数据?

Is there a simple way to export the data from a meteor deployed app?

例如,如果我部署了一个名为test.meteor.com的应用...

So, for example, if I had deployed an app named test.meteor.com...

我如何轻松下载该应用程序收集的数据-以便与已部署应用程序中的数据一起在本地运行?

How could I easily download the data that has been collected by that app - so that I could run it locally with data from the deployed app?

推荐答案

要在meteor.com上获取已部署站点的URL,请使用以下命令(如果使用密码保护,则可能需要提供站点密码):

To get the URL for your deployed site at meteor.com use the command (you may need to provide your site password if you password protected it):

meteor mongo --url YOURSITE.meteor.com

这将返回类似的内容:

mongodb://client:PASSWORD@sky.member1.mongolayer.com:27017/YOURSITE_meteor_com

您可以将其提供给类似mongodump

Which you can give to a program like mongodump

mongodump -u client -h sky.member1.mongolayer.com:27017 -d YOURSITE_meteor_com\
          -p PASSWORD

密码只能使用一分钟.使用方法:

The password is only good for one minute. For usage:

$ meteor --help mongo

这篇关于有没有一种简单的方法可以从流星部署的应用程序中导出数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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