PM2 is a process manager for nodejs apps. It daemonizes apps built with nodejs, which means run-as-service.
Let’s install PM2 using npm.
|
|
Now you can start your app using pm2 like so:
|
|
Next, register the app as a startup process.
You can check the currently running apps like so: