I tried to use json config to run forever, but some config seems not work. I wonder whether my code is wrong, or it only supports --xxx
commands like --minUptime
, except -xxx
commands like -m
.
.
├── forever
│ └── proConfig.json
└── test_debug.js
// config.json
{
"append": true,
"watch": true,
"script": "test_debug.js",
"minUptime": "100ms",
"spinSleepTime": "10000ms",
// -------------------------
"MAX": 10,
"LOGFILE": "forever.log",
"OUTFILE": "out.log",
"ERRFILE": "err.log"
}
Command:
forever forever/proConfig.json
via Deng
No comments:
Post a Comment