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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -