This commit is contained in:
zlwu committed 2026-07-11 17:15:17 +08:00
1 parent 843e13bce3
commit 7b1d4c8729
629 files changed
+74059 -7929

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# 将 miniprogram/static/ 同步到公网服务器静态目录
# 用法:./scripts/sync-static-to-server.sh [user@host]
#
# 默认:root@121.43.228.102 → /iflytek/shanxia2.0/app/assets/
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
REMOTE="${1:-root@121.43.228.102}"
REMOTE_DIR="/iflytek/shanxia2.0/app/assets"
echo "同步 ${ROOT_DIR}/static/ → ${REMOTE}:${REMOTE_DIR}/"
rsync -avz --delete "${ROOT_DIR}/static/" "${REMOTE}:${REMOTE_DIR}/"
echo ""
echo "完成。请自检:"
echo " curl -I http://121.43.228.102:9911/shanxia-static/images/logo.gif"
echo " curl -I http://121.43.228.102:9911/shanxia-static/health"