Bluemix/CloudFoundry + Meteor - How to Project Reset?

91 Views Asked by At

When developing with Meteor locally, one execute meteor reset locally to refresh the database.

Can one run this command on a production level app deployed on Bluemix without digging into the Mongo console?

1

There are 1 best solutions below

0
On BEST ANSWER

The meteor reset command actually deletes the local mongo database files in .meteor/local. Since the database isn't stored in the application container when running in Cloud Foundry, there isn't an equivalent operation as a one liner.

Seems like your only option is to retrieve the connection credentials from your application cf env appname and then stop the application, connect with the mongo command line, and use one of the methods described in this answer to clean your data out.