How to reset a meteor project that was deployed with meteor up

I 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, as I can locally using the simple meteor reset command. I tried installing a meteorite on the server, but the .meteor project is missing, so the command does not work. I looked in the / opt / meteor folder, but there is no meteorite project.

+6
source share
4 answers

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

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

If you need to change the application, a simple redeployment should work.

BTW: You are not using MongoDB this way for a production application.

+8
source

If you are using mup or mupx try:

Log in to your server :

 $ ssh <user>@<server-ip> 

Mongo shell login

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

Drop db

 > db.dropDatabase() 
+9
source

Is this what you are looking for?

 mup reconfig 

Based on the doc for it:

This will also restart the application [without redeployment], so you can use it for this purpose even if you have not changed the configuration file.

+2
source

I don't have enough comments yet, but to add Arunoda's answer you might want to

 use [name of app database] 

in front of you

 db.dropDatabase() 

And if you don’t know what the name is, you can also

 show databases 

If you used mup, the database will usually be the same name as your application.

+2
source

Source: https://habr.com/ru/post/971252/


All Articles