pm2 npm VUE写在第一次使用
Centos安装npmipm2-gpm2startnpm--name"nuxt-ssr-demo"--runbuild启动没有报错然浏览器打开报502,还是NGINX执行pm2 delete allnpm start运行不起来,报Error:Nobuildfilesfoundin/data/dist_test/.nuxt/dist/s...
·
Centos 安装
npm i pm2 -g
pm2 start npm --name "nuxt-ssr-demo" -- run build
启动没有报错
然浏览器打开报502,还是NGINX
执行pm2 delete all
npm start运行不起来,报
Error: No build files found in /data/dist_test/.nuxt/dist/server. │
│ Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
WHAT HAPPENED!!
重新覆盖原文件,npm start 显示http://localhost:3000/test
THAT's GOOD,
pm2 start npm -- start
依然没有报错
然浏览器打开报502,还是NGINX
重新覆盖原文件,pm2 start npm -- start 打开浏览器,一切正常,看样子还是不能混合启动。。。。
更多推荐
已为社区贡献1条内容
所有评论(0)