Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset a meteor project thats been deployed with meteor up

Tags:

reset

meteor

I have used meteorUp here sucesffuly to deploy my meteor project on my own host.

However I have no idea how to reset the database, or the entire project itself, like I can locally with the simple meteor reset command. I tried installing meteor on the server but there is no .meteor project so that command doesnt work. I looked in /opt/meteor folder but no meteor project exists.

like image 509
Anders Kitson Avatar asked Jun 23 '14 18:06

Anders Kitson


3 Answers

If you need to reset the data. You need to login to the server. login to mongodb with mongo meteor.

Then do db.dropDatabase() to delete the DB.

If you need to change the app, simple redeploy should work.

BTW: Do you not use MongoDB this way for a production app.

like image 159
Arunoda Susiripala Avatar answered Oct 20 '22 21:10

Arunoda Susiripala


If you are using mup or mupx try:

Login to your server:

$ ssh <user>@<server-ip>

Login into mongo shell

$ docker exec -it mongodb mongo <app-name>

Drop db

> db.dropDatabase()
like image 22
HaNdTriX Avatar answered Oct 20 '22 21:10

HaNdTriX


Is this what you are looking for?

mup reconfig

Based on the doc for it:

This will also restart the app [without re-deploying], so you can use it for that purpose even if you didn't change the configuration file.

like image 2
Firo Avatar answered Oct 20 '22 22:10

Firo