#!/bin/bash # 设置错误时退出 set -e git pull origin master yarn install rm -rf dist/ yarn build --mode production rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@47.77.206.108:/var/www/pet-web/