Meteor 应用程序 — 重置已部署应用程序的数据库 [英] Meteor app — resetting a deployed app's DB

查看:18
本文介绍了Meteor 应用程序 — 重置已部署应用程序的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种简单的方法可以从部署的应用程序中重置数据?

Is there a simple way to reset 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 reset the data that has been collected by that app?

我在本地运行 meteor reset,但我不确定在生产中要做什么.

Locally I run meteor reset, but I am unsure of what to do in production.

推荐答案

如果你有你的应用程序,你可以在你的项目目录中执行此操作

If you have your app with you you could do this in your project directory

meteor deploy test.meteor.com --delete
meteor deploy test.meteor.com 

第一个删除应用程序,因此它是空白的.第二个部署它的一个新实例.

The first deletes the app so its all blank. The second deploys a fresh instance of it back.

这篇关于Meteor 应用程序 — 重置已部署应用程序的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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