Express 4 + pm2 watch not working
问题 I'm running pm2 with this: pm2 start bin/www --watch ../ Problem is that when I update app.js in the root folder, it doesn't seem to be autorestarting node. Any ideas? 回答1: Figured out a solution: //processes.json: { "apps" : [{ "name" : "someExpress4App", "script" : "bin/www", "watch" : "../", "log_date_format" : "YYYY-MM-DD HH:mm Z", }] } Put that on the root of your project, then run your pm2 as so: pm2 start processes.json 来源: https://stackoverflow.com/questions/27882759/express-4-pm2