Meteor app — resetting a deployed app's DB

前端 未结 4 2258
星月不相逢
星月不相逢 2020-12-12 20:33

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

So, for example, if I had deployed an app named test.meteor.com — how could I easily

4条回答
  •  长情又很酷
    2020-12-12 20:49

    I know this is a bit old, but I just changed my collection name. so in your /lib/collections.js file,

    someCollection = new Mongo.Collection("originalcollection");
    

    becomes

    someCollection = new Mongo.Collection("newcollectionname");
    

    this is assuming of course that your app generates the data for the database.

提交回复
热议问题