deploy.sh 253 B

12345678910
  1. #!/bin/bash
  2. # 设置错误时退出
  3. set -e
  4. git pull origin main
  5. yarn install
  6. rm -rf dist/
  7. yarn build --mode production
  8. rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@47.77.206.108:/var/www/pet-admin/