Westwick
Westwick

Reputation: 2497

meteor.js - is it possible to run direct database queries on a deployed project?

Pretty much the title... I deployed a meteor project but I need to tweak some values in the database. Is this possible without writing some code and just doing direct mongo queries? Or barring that, can I wipe the data on the deployed project's database and have a fresh start?

Upvotes: 3

Views: 256

Answers (1)

mjkaufer
mjkaufer

Reputation: 4216

To gain direct mongo access to the database of your deployed app, open up your terminal and type in: meteor mongo yourproject.meteor.com

If you're trying to reset your databases in production, assuming you still have the files you deployed with, simply run meteor deploy yourproject.meteor.com --delete and, after it deletes, run meteor deploy yourproject.meteor.com. This is all assuming you have the files you deployed with and you're in that subdirectory currently.

Upvotes: 3

Related Questions