Keeping Meteor running after shell/terminal closed (Custom Deployment on DigitalOcean)?


#1

I tried to use Custom Deployment on DigitalOcean.
Running Meteor with local terminal

// bundle
MONGO_URL=mongodb://localhost:27017/myapp ROOT_URL=http://1.2.3.4 PORT=3000 node main.js

I work fine, but It stop running when I closed Shell/Terminal (Local PC).
Please help me to keep Running after closed shell/terminal


#2

You want the instance to keep running after you say bye to ssh?

$ sudo apt install tmux
$ tmux new -s myMeteor
$ tmux attach

once you are in your tmux virtual terminal, change to your folder and run the meteor instance again.
To detach that virtual terminal, press Ctrl + b, d
Have a go :slight_smile:


#3

thanks for your reply, Now I used PM2.
It work fine