Search code examples
ubuntuazuremeteormeteor-up

How do I remove my deployment instances created using Meteor Up?


I've got a test Azure Ubuntu server that I'm testing deployments on.

I've created a number of instances of my Meteor app using Meteor Up.

I would like to remove them from the server.

Does Meteor up have some sort of "mup remove" command?


Solution

  • Sadly no, Meteor-up does not provide any automated way to clean up after itself. Basically you'd have to follow these steps, on your server:

    1. Stop your app using sudo service yourApp stop. If not, your app will still be running even after deletion
    2. Delete the /opt/yourApp folder: sudo rm -rf /opt/yourApp
    3. Delete the init script: sudo rm /etc/init/yourApp.cfg

    Also, if you used an external database, don't forget to clean it up using the mongo client:

    > use yourDatabase
    > db.dropDatabase()