vue项目部署
1.运行npm run build: 会在当前目录下生成dist文件夹:
2.copy已经打好的dist文件夹下的文件到对应nginx目录下:
cd /app/openresty/nginx/html
rm -rf static
rm -rf index.html
cd /tmp
pwd
mv dist/static/ /app/openresty/nginx/html/
mv dist/index.html /app/openresty/nginx/html/
posted on 2019-07-04 16:39 zhulibin2012 阅读(201) 评论(0) 收藏 举报
浙公网安备 33010602011771号