#!/bin/bash echo "打包文件" npm run-script build echo "传输文件" scp -r ./dist/** root@106.52.134.22:/opt/lcv2/ipole_front_web/dist echo "部署成功"