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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -