部署文档与脚本增加 HTTP 代理配置(192.168.8.246:10810)。

This commit is contained in:
dekun
2026-06-28 13:24:19 +08:00
parent f1ad4273f4
commit 4375ea491e
5 changed files with 78 additions and 3 deletions
+13 -2
View File
@@ -36,7 +36,7 @@ git commit -m "你的说明"
git push
```
服务器:
服务器(需代理时先 `export http_proxy=http://192.168.8.246:10810` 等,见 [DEPLOY.md §3](./docs/DEPLOY.md#3-一键部署新服务器)
```bash
bash /opt/secondary-school-grade-archive/deploy/update.sh
@@ -62,7 +62,7 @@ git commit -m "你的说明"
git push
```
服务器:
服务器(需代理时先 `export http_proxy=http://192.168.8.246:10810` 等,见 [DEPLOY.md §3](./docs/DEPLOY.md#3-一键部署新服务器)
```bash
bash /opt/secondary-school-grade-archive/deploy/update.sh
@@ -74,6 +74,15 @@ bash /opt/secondary-school-grade-archive/deploy/update.sh
## Ubuntu 一键部署(零 Node
若服务器访问外网需走代理,**先设置代理再执行安装**:
```bash
export http_proxy=http://192.168.8.246:10810
export https_proxy=http://192.168.8.246:10810
export HTTP_PROXY="$http_proxy"
export HTTPS_PROXY="$https_proxy"
```
```bash
git clone https://git.bz121.com/dekun/secondary-school-grade-archive.git /opt/secondary-school-grade-archive
cd /opt/secondary-school-grade-archive
@@ -81,6 +90,8 @@ chmod +x deploy/*.sh
bash deploy/install.sh
```
> `install.sh` 会自动将代理用于 `apt`、`git`、`pip`、`curl`。无需代理时可省略 `export` 步骤。
- 安装目录:`/opt/secondary-school-grade-archive`
- 访问地址:`http://<服务器IP>:23566`
- 进程管理:`systemctl status grade-archive` / `journalctl -u grade-archive -f`