中暑虚脱

首页 » 常识 » 问答 » NODEPM2部署流程
TUhjnbcbe - 2021/5/21 0:58:00

01确认本机调试OK

"scripts":{"prebuild":"echoIrunbeforethebuildscript","build":"nestbuild","postbuild":"echoIrunafterthebuildscript""start":"neststart","debug":"neststart--debug--watch","prod:node":"nodedist/src/main.js","prod:pm2":"shscripts/start.shlive","test:watch":"NODE_ENV=testjest--config./test/jest-e2e.json--watch","test:coverage":"NODE_ENV=testjest--config./test/jest-e2e.json--coverage","test:debug":"node--inspect-brk-rtsconfig-paths/register-rts-node/registernode_modules/.bin/jest--runInBand"}?

#确保本地测试用例oknpmruntest#确保本地编译OKnpmrunbuild#确保本地node起程序OKnpmrunprod:node#确保程序已经启动curl-XGET

1
查看完整版本: NODEPM2部署流程