run pm2 script node js medium code example Example: pm2 node start # only start will make it pm2 start app.js