vue 项目部署到nginx

第一步在控制台终端输入npm run build

打包完成之后项目中会生成一个dist文件夹,直接访问里面的index.html就ok了

第二步配置nginx

第三步重启nginx

service nginx stop

service nginx start

猜你喜欢

转载自www.cnblogs.com/mensiler/p/9883344.html