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/
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/