目的:
nginx部署打包成為dist的前端項目
(學習視頻分享:php視頻教程)
相關知識:
立即學習“前端免費學習筆記(深入)”;
docker?安裝與使用 docker?pull?nginx docker?run?--restart=on-failure:20?-itd?--name?nginx?-p?80:80?nginx:latest
nginx如何部署dist? nginx如何部署vue? nginx如何部署前端項目?
安裝nginx后,配置
該文件放在/etc/nginx/conf.d/xxx.conf
server{ ????listen?80; ????server_name??xxx.com; ????location?/{ ????????root?/home/web/vueProjects/wxopapp/dist/; ????????index?index.htm?index.html; ????????expires??????30d; ????} }
nginx?-t nginx?-s?reload
相關推薦:php視頻教程
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END
喜歡就支持一下吧
相關推薦