Browse Source

chore: fully clear remote dist including hidden files

main
xiaosi 2 weeks ago
parent
commit
32859c3598
  1. 2
      scripts/deploy.sh

2
scripts/deploy.sh

@ -78,7 +78,7 @@ COPYFILE_DISABLE=1 tar -C dist -czf - \
--exclude='.AppleDouble' \ --exclude='.AppleDouble' \
. \ . \
| ssh -o BatchMode=yes "$DEPLOY_HOST" \ | ssh -o BatchMode=yes "$DEPLOY_HOST" \
"mkdir -p '$DEPLOY_PATH' && rm -rf '$DEPLOY_PATH'/* && tar -C '$DEPLOY_PATH' -xzf -"
"mkdir -p '$DEPLOY_PATH' && find '$DEPLOY_PATH' -mindepth 1 -delete && tar -C '$DEPLOY_PATH' -xzf -"
echo "==> 校验远端文件" echo "==> 校验远端文件"
ssh -o BatchMode=yes "$DEPLOY_HOST" \ ssh -o BatchMode=yes "$DEPLOY_HOST" \

Loading…
Cancel
Save