refactor!: 全量改名 —— 仓库 / 目录 / 服务 / 文档 / 站点全部换成 xiaoyin-gateway
老板要求「全改」,所以这次不只是展示名:
仓库
· Gitea Jidekin/api-gateway → Jidekin/xiaoyin-gateway
· GitHub wangjinding/api-gateway → wangjinding/xiaoyin-gateway
· 本地 remote 两个都改了,ls-remote 验证可访问
本机
· /root/dsh/projects/api-gateway → xiaoyin-gateway
· /root/.venvs/api-gateway → xiaoyin-gateway
· supervisor [program:api-gateway] → [program:xiaoyin-gateway]
(reread + update + 重启后 RUNNING,根接口正常返回 小银网关 2.9.16)
引用同步
· security/uptime-check.sh、backup-app-data.sh、backup-restore-drill.sh 的路径
· AGENTS.md、home-network.md(后者已同步思源)
· README / CHANGELOG / docs / Makefile 提示语 / 前端包名 / 站点里的 git clone 地址
有意保留的两处
· 前端备份数据的 kind: 'api-gateway-backup' —— 数据格式标识,改了旧备份认不出来
· frontend/dist 里的同名常量(同上)
This commit is contained in:
1 parent
249fce139c
commit
3d84a2abc3
8 files changed
+18
-18
No files matched your search
@@ -23,7 +23,7 @@
|
||||
# **绝不写进本仓库任何文件**(仓库是要推到远端的)。
|
||||
set -euo pipefail
|
||||
|
||||
REPO_URL="https://git.wangjinding.com/Jidekin/api-gateway.git"
|
||||
REPO_URL="https://git.wangjinding.com/Jidekin/xiaoyin-gateway.git"
|
||||
USER="Jidekin"
|
||||
TOKEN_FILE="${HOME}/.gitea_token"
|
||||
|
||||
@@ -50,11 +50,11 @@ echo "== 推送 $BRANCH → Gitea($REPO_URL)=="
|
||||
echo " 本地 HEAD = $(git rev-parse --short HEAD)"
|
||||
|
||||
# 一次性内嵌凭据;输出里把凭据打码,避免它进日志/终端回滚缓冲
|
||||
git push "https://${USER}:${CRED}@git.wangjinding.com/Jidekin/api-gateway.git" "${BRANCH}:${BRANCH}" 2>&1 \
|
||||
git push "https://${USER}:${CRED}@git.wangjinding.com/Jidekin/xiaoyin-gateway.git" "${BRANCH}:${BRANCH}" 2>&1 \
|
||||
| sed "s/${CRED}/[CRED]/g"
|
||||
|
||||
# 推完核对:远端 HEAD 必须 = 本地 HEAD;并复查 .git/config 没被塞进明文凭据
|
||||
REMOTE_HEAD="$(git ls-remote "https://${USER}:${CRED}@git.wangjinding.com/Jidekin/api-gateway.git" "refs/heads/${BRANCH}" | awk '{print $1}')"
|
||||
REMOTE_HEAD="$(git ls-remote "https://${USER}:${CRED}@git.wangjinding.com/Jidekin/xiaoyin-gateway.git" "refs/heads/${BRANCH}" | awk '{print $1}')"
|
||||
LOCAL_HEAD="$(git rev-parse HEAD)"
|
||||
if [ "$REMOTE_HEAD" = "$LOCAL_HEAD" ]; then
|
||||
echo "✓ 远端 = 本地(${LOCAL_HEAD:0:7})"
|
||||
|
||||
Reference in new issue
Block a user