中暑虚脱

注册

 

发新话题 回复该主题

NODEPM2部署流程 [复制链接]

1#

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","testebug":"node--inspect-brk-rtsconfig-paths/register-rts-node/registernode_modules/.bin/jest--runInBand"}?

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

分享 转发
TOP
发新话题 回复该主题