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

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

问题描述

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

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.

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

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