vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

关于服务器环境部署 #330

Open WinmezzZ opened 6 years ago

WinmezzZ commented 6 years ago

请问部署是直接把项目放在服务器下执行npm start吗

zgfcode commented 5 years ago

server: npm run build npm run start browser: server_ip:8080

longFeiLi commented 5 years ago

怎么解决第二次发布网站会变成502问题?

yuwengCipher commented 5 years ago

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