I am currently programming Node.js with Express.js, and every time I change a line of code in the file router or app, I need to type the command:
pm2 reload id_
You need to start your pm2 project with the --watch option:
pm2
--watch
pm2 start