forever 替换成pm2

This commit is contained in:
aixianling
2023-06-09 17:45:10 +08:00
parent adc58b3e0d
commit 857825af4a
3 changed files with 36 additions and 5 deletions

View File

@@ -4,9 +4,10 @@
"description": "node服务端",
"main": "index.js",
"scripts": {
"dev": "forever -w --watchDirectory src index.js ",
"pro": "forever start index.js",
"stop": "forever stopall"
"dev": "pm2 restart pm2.config.js --only dev --attach",
"pro": "pm2 start pm2.config.js --only oms-node",
"deploy": "pm2 deploy pm2.config.js production",
"stop": "pm2 delete all"
},
"repository": {
"type": "git",