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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…