Picture of Chat Noir
Help with node background process / daemon
by Chat Noir - Saturday, 9 February 2019, 10:09 AM
 

I was hoping someone could explain how to keep Adapt running and accessible from browser permanently without my needing to enter cd adapt_authoring  and node server

I already have MongoDB running as a background process after entering mongod --fork --logpath /var/log/mongodb.log

 

All suggestions appreciated. Thanks.

Picture of Tom Taylor
Re: Help with node background process / daemon
by Tom Taylor - Tuesday, 26 February 2019, 6:19 PM
 

There are various ways to do this, but if you're doing things directly from the command line, you can use a process manager like pm2.

I'd particularly recommend PM2, as it's really easy to get set up, and pretty full featured. We use it internally to handle all of our production authoring tool installs.