Quite often, PM2 is the go-to tool for running Node.js apps. I'm a big believer in using the Operating System's init system for what it's designed to do and has been doing for years: launch, look after and re-launch services on a Linux system; I'll focus on systemd by way of example. I'll also touch on containers, logging and, to some extent, monitoring, to give you the tools you need to move away from PM2 and embrace Linux.
Quite often, PM2 is the go-to tool for running Node.js apps. I'm a big believer in using the Operating System's init system for what it's designed to do and has been doing for years: launch, look after and re-launch services on a Linux system; I'll focus on systemd by way of example. I'll also touch on containers, logging and, to some extent, monitoring, to give you the tools you need to move away from PM2 and embrace Linux.