From eababda9f7e45be94306c3a5acfe265667cf819f Mon Sep 17 00:00:00 2001 From: LittleGuo Date: Mon, 12 Oct 2026 17:42:38 +0800 Subject: [PATCH] =?UTF-8?q?chore(memory):=20=E8=AE=B0=E5=BD=95=20Gitea=20?= =?UTF-8?q?=E8=BF=9C=E7=AB=AF=E3=80=81refs/for=20=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B3=95=E4=B8=8E=E6=89=80=E7=94=A8=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ai-memory/project_server_deploy.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.ai-memory/project_server_deploy.md b/.ai-memory/project_server_deploy.md index 7610646..1a4abcc 100644 --- a/.ai-memory/project_server_deploy.md +++ b/.ai-memory/project_server_deploy.md @@ -16,7 +16,23 @@ type: project - nginx 配置:`/etc/nginx/conf.d/wechat-api.conf`,`server_name ethereal-realm.top` - `deploy` 在 `wheel` 组,`sudo` 需要密码 → 涉及 sudo 的操作必须让用户手动执行 -**代码仓库拓扑(2026-09-27 起)** +**代码仓库拓扑(2026-10-10 起:已迁到 Gitea)** + +远端已改为**应用服务器上自建的 Gitea**:`origin = ssh://git@39.107.55.179:222/gjm/wechat-scan.git` +(Gitea 监听 `:3000`,web 入口 `git.ethereal-realm.top`)。旧的 `47.93.46.28:1216` 自建裸仓库 +(见下方历史记录)已不再是当前远端。 + +- **推送必须走 PR 流程**,不要直接 `git push origin `: + `git push origin HEAD:refs/for/main/<分支名>` → Gitea 自动创建/更新 PR + (实测 `refs/for/main/feature/home-ai-dev` → 生成 PR #1,web `http://39.107.55.179:3000/gjm/wechat-scan/pulls/1`)。 +- **本地 git 要用对密钥**:Gitea 认的是 `~/.ssh/id_ed25519_guojianming` + (注释 `guojianming.go@gmail.com`,Gitea 用户名 `home-Lenovo-Legion-r9000`); + 默认的 `~/.ssh/id_ed25519`(`deploy@aly-db`)只对 `deploy@` 登录有效,对 Gitea 会 + `Permission denied (publickey)`。推送时指定: + `GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519_guojianming -o IdentitiesOnly=yes" git push origin HEAD:refs/for/main/<分支名>` +- 当前开发分支是 `feature/home-ai-dev`,`main` 跟踪 `origin/main`。 + +**代码仓库拓扑(2026-09-27 起,历史)** 用户自建了一台 Linux 代码服务器 `gjm@47.93.46.28:1216`(CentOS 7.2,git 1.8.3.1), 裸仓库在 `/srv/git/wx-scan-authorize.git`(owner `gjm`)。