feat: 液态玻璃主题系统(深色/浅色切换) + 访问者计数 + 部署脚本

This commit is contained in:
freedakgmail
2026-07-06 21:32:09 +08:00
parent e76ed2d57e
commit 9c86f17643
3 changed files with 344 additions and 79 deletions
Executable
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# 部署 Portal 到服务器
# 用法: ./deploy.sh
SERVER="154.8.162.18"
USER="root"
PASS="Why_701208"
REMOTE_PATH="/var/www/portal"
LOCAL_FILE="index.html"
echo "正在上传 ${LOCAL_FILE}${SERVER}:${REMOTE_PATH}..."
sshpass -p "${PASS}" scp -o StrictHostKeyChecking=no "${LOCAL_FILE}" "${USER}@${SERVER}:${REMOTE_PATH}/${LOCAL_FILE}"
if [ $? -ne 0 ]; then
echo "上传失败"
exit 1
fi
echo "正在重载 Nginx..."
sshpass -p "${PASS}" ssh -o StrictHostKeyChecking=no "${USER}@${SERVER}" "nginx -s reload"
if [ $? -ne 0 ]; then
echo "Nginx 重载失败"
exit 1
fi
echo "部署完成: https://portal.all8ai.top/"