Is there a tutorial anywhere for doing this? My inexperience will show through but I deployed a prototype app to Digital Ocean using MUPX and I am now trying to reset the database in the same way I used to run meteor reset on myApp.meteor.com.
When @arunoda says run meteor mongo, where do I do that? In the terminal? Or through the server console provided by DO? Thank you.
Any further suggestions on how to do that? There are step-by-step tutorials for deploying using MUPX but nothing on resetting. Sadly, I don’t know how to use the suggestion.
On second thought…I should really do some more research before asking more here. I just really miss myApp.meteor.com.
What was the tutorial you followed for your MUPX deployment?
You probably created a user account for your DigitalOcean server while you were following your deployment instructions. You need to remotely log in to that account. Your DO dashboard will tell you the IP address of your server. If you’re on a Mac or Linux computer, you can login by opening a terminal application and using ssh. For example,
ssh <yourAccountsUserName>@<yourIPAddress>
or
ssh brendansDeploymentAccount@127.0.0.1
If you’re on a Windows machine, you can use an application named PuTTY to make the ssh connection.
Or you can use the server console provided by DO’s web dashboard. That will log you in as your server’s root user. You can use the su command to log in to your deployment user account from there.
Then once you’re logged in to your deployment account, you can cd into your app’s directory and run meteor mongo from there.
But what is the difference between mongodump and db.dropDatabase(), as suggested by @arunoda? I want to redeploy my app but want to delete all documents that I have created through resting the deployed prototype.
All good now, thanks for the follow up. I admit I was confusing collections with database. Once I realized there was only one thing to delete (by checking show dbs), it became much clearer.