forever.json中有以下内容
[
{
"uid": "app1",
"append": true,
"watch": true,
"script": "npm run pack "
},
{
"uid": "app2",
"append": true,
"watch": true,
"script": "npm run render-prod"
},
{
"uid": "app3",
"append": true,
"watch": true,
"script": "npm run django8000"
}]
我跑步时
forever start forever.json
root@ip-10-252-14-11:/home/ubuntu/workarea/ntdl-2# forever
startforever.json
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay
up for at least 1000ms
info: Forever processing file: npm run pack
info: Forever processing file: npm run render-prod
info: Forever processing file: npm run django8000
error: Cannot start forever
error: script /home/ubuntu/workarea/ntdl-2/npm run pack does not
exist
在package.json中,我有以下内容
"scripts": {
"runapp8000": "concurrently --no-color \"npm run pack \" \"npm run
render-render\" \"npm run django8000\""}
我想永久运行npm run runapp8000,因此我永远使用它。 请帮助我解决这个问题 谢谢 巴拉斯·阿克