简体   繁体   中英

Run meteor.js in background

How can I launch Meteor.js application in the background ?

I use next command:

MONGO_URL=mongodb://localhost:27017/start_page meteor &

But application stops after some time when I disconnected from server. Is there any way to find out why my application stops ?

Your application is tied to the shell it was started in. When the ssh connection closes the process stops.

Using screen can solve this by keeping the remote terminal up after ssh session ends.

Others suggest using the node module 'forever'. Some discussion on that here .

Nope & at the end of the command is not enough. Typically to do this in a unix environment, u use nohup, which ties the process to the root user and not your current shell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM