We are facing some issue while using npm package forever Trying to restart the server automatically after crash.
Below is the code.
Before
"start":"nodemon --watch '**/*.ts' --exec ts-node index.ts""
After
"start": "forever start --minUptime 1000 --spinSleepTime 10000 ./index.ts",
"scripts": {
"start": "forever start --minUptime 1000 --spinSleepTime 10000 ./index.ts",
"bundle-colyseus-client": "browserify ./node_modules/colyseus.js/lib/index.js -s Colyseus -o static/colyseus.js",
"build": "npm run bundle-colyseus-client",
"heroku-postbuild": "npm run build"
}
Server Stop after processing file