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 打开浏览器,一切正常,看样子还是不能混合启动。。。。