node.js - Take different action based on number of times npm "forever" restarts -
node.js - Take different action based on number of times npm "forever" restarts -
i'm running express server behind forever
. let's there lot of crashes x within specified period of time n (due runtime error in newest deploy, example). instead of restarting script x+1th time, want run cleanup script roll previous version, other cleanup, , restart. possible forever
?
node.js forever
Comments
Post a Comment