fix: use HTTPS for production repository fetches
This commit is contained in:
+2
-2
@@ -51,7 +51,7 @@ PR 质量门禁由 `.gitea/workflows/ci.yml` 执行:
|
||||
|
||||
自动部署前,服务器必须满足:
|
||||
|
||||
- Gitea 仓库为 `http://117.72.28.96:8765/Jacky/Hulumath-Web.git`。
|
||||
- Gitea 仓库为 `https://git.jacky0987.xyz/Jacky/Hulumath-Web.git`。
|
||||
- 项目目录为 `/www/wwwroot/Hulumath-Web`。
|
||||
- Python 位于 `/www/server/pyporject_evn/versions/3.12.13/bin/python3` 或同目录 `python`。
|
||||
- 已安装 MySQL 8 客户端命令 `mysqldump`。
|
||||
@@ -76,7 +76,7 @@ chmod 600 .env.production
|
||||
|
||||
```bash
|
||||
cd /www/wwwroot/Hulumath-Web
|
||||
git remote set-url origin http://117.72.28.96:8765/Jacky/Hulumath-Web.git
|
||||
git remote set-url origin https://git.jacky0987.xyz/Jacky/Hulumath-Web.git
|
||||
git fetch origin main
|
||||
PREVIOUS_REVISION="$(git rev-parse HEAD)"
|
||||
git reset --hard origin/main
|
||||
|
||||
Reference in New Issue
Block a user