Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete the data when the project is deploy?

Tags:

mongodb

meteor

I just built the chat application on the meteor and deployed it with meteor deploy appname. Now I want to delete the data present in the application. As we know meteor supports Mongo database, I tried by meteor reset but this reset only my local db not the application. So how can I delete the data from the meteor repo?

like image 336
Bhim Prasad Ale Avatar asked Jun 17 '13 11:06

Bhim Prasad Ale


1 Answers

This is as simple as opening up a mongo shell to the remote database on the meteor.com servers.

all you need to do is type

meteor mongo appname

where appname is the name that you deployed your app to.

once you have a command prompt you can can use db.collectionName.remove({}) on each collection to get rid of your data.

Alternatively you can delete your whole deployment from the meteor servers.

meteor deploy --delete appname

Then redeploy

Meteor deploy appname

like image 161
Kelly Copley Avatar answered Oct 14 '22 08:10

Kelly Copley