From 9c86f17643c6015d4ffa6cb8c44f504070ee9771 Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Mon, 6 Jul 2026 21:32:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B6=B2=E6=80=81=E7=8E=BB=E7=92=83?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E7=B3=BB=E7=BB=9F(=E6=B7=B1=E8=89=B2/?= =?UTF-8?q?=E6=B5=85=E8=89=B2=E5=88=87=E6=8D=A2)=20+=20=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E8=80=85=E8=AE=A1=E6=95=B0=20+=20=E9=83=A8=E7=BD=B2=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 27 ++++ index.html | 388 ++++++++++++++++++++++++++++++++++++++++----------- netlify.toml | 8 ++ 3 files changed, 344 insertions(+), 79 deletions(-) create mode 100755 deploy.sh create mode 100644 netlify.toml diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..3c1743f --- /dev/null +++ b/deploy.sh @@ -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/" diff --git a/index.html b/index.html index 6345baf..ff08653 100644 --- a/index.html +++ b/index.html @@ -10,22 +10,145 @@ @@ -467,6 +652,10 @@ 20 个智能应用在线 / 20 Apps Online + @@ -510,6 +699,10 @@ @@ -549,6 +742,12 @@ diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..94b6f9a --- /dev/null +++ b/netlify.toml @@ -0,0 +1,8 @@ +[build] + publish = "." + command = "" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200