Auto restart apps on file change code example Example: Auto restart apps on file change pm2 start app.js --watch