Open WinmezzZ opened 6 years ago
server: npm run build npm run start browser: server_ip:8080
怎么解决第二次发布网站会变成502问题?
if you want keep your applications alive forever, use pm2 to manage process.
add the script:
"pm2-start": "cross-env NODE_ENV=production pm2 start server.js"
and npm run pm2-start
请问部署是直接把项目放在服务器下执行npm start吗