diff --git a/build.py b/build.py index a8db141..1b60fc1 100644 --- a/build.py +++ b/build.py @@ -20,7 +20,7 @@ CONTENT = ROOT / "content" TEMPLATES = ROOT / "templates" ASSETS = ROOT / "assets" DIST = ROOT / "dist" -SITE_BASE = "https://home.lala.dedyn.io/teamat/" +SITE_BASE = "https://teamat.lala.dedyn.io/" VAR_RE = re.compile(r"{{\s*(\w+)\s*}}") LOOP_RE = re.compile(r"{{#(\w+)}}(.*?){{/\1}}", re.S) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b9a62d7..10fa9b7 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,7 +5,8 @@ cd "$(dirname "$0")/.." REMOTE="admin@100.101.79.24" REMOTE_DIR="/share/CACHEDEV8_DATA/web/www/teamat/" -SITE_URL="https://home.lala.dedyn.io/teamat/" +SITE_URL="https://home.lala.dedyn.io/teamat/" # 서브패스(항상 유효) — 배포 성공 판정용 +SITE_URL2="https://teamat.lala.dedyn.io/" # 전용 도메인 — 인증서 발급 전에는 000 이 나올 수 있다 python3 build.py @@ -19,4 +20,6 @@ if [ "$status" != "200" ]; then exit 1 fi +status2="$(curl -s --max-time 15 -o /dev/null -w '%{http_code}' "$SITE_URL2" || true)" echo "배포 완료: ${SITE_URL} (HTTP ${status})" +echo "전용 도메인: ${SITE_URL2} (HTTP ${status2:-000})"