Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 304
Diskdrive Avatar asked Oct 20 '25 14:10

Diskdrive


1 Answers

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()
like image 147
SylvainB Avatar answered Oct 23 '25 07:10

SylvainB