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/

猜你喜欢

转载自www.cnblogs.com/zhulibin2012/p/11133309.html