astrion-website/deploy_website.sh

16 lines
481 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# Astrion 官网一键部署:本仓库 demo/ → 服务器 /var/www/astrion/
# 用法bash deploy_website.sh
# --delete 会删除服务器上本仓库没有的文件(已豁免 .well-knowncertbot 续期用)。
set -euo pipefail
SRC="$(cd "$(dirname "$0")/demo" && pwd)/"
DEST="59.110.19.30:/var/www/astrion/"
rsync -az --delete \
--exclude='.DS_Store' \
--exclude='.well-known/' \
"$SRC" "$DEST"
echo "Deployed → https://astrion.cyjai.com"