Repository navigation
docs: README 同步部署零手工自举(双语言)(ONE-514) - #159
Merged
Merged
Conversation
- §3:TABLE_PREFIX 改为单一真源,由 CI 写入 Worker 绑定;TOTP_ENCRYPTION_KEY 加入 GitHub Secrets 清单(经 --secrets-file 注入、缺失即失败关闭); APP_URL 降为可选(smoke 自动推导 workers.dev 地址) - §4:改为「可选 Worker 变量」,明确控制台不再手工配 TABLE_PREFIX 与三把密钥 - §5:首次点 Deploy 即全绿自举(默认/自定义前缀皆然),人工只剩绑自定义域名 (与部署成败无关)与可选的 APP_URL - §6:删除「控制台手工配 TABLE_PREFIX」残留,改为部署托管 + 迁移守卫说明 (含 Worker 不存在但有账本时放行) - 环境变量章节:标注每项的来源(GitHub → CI / Worker 控制台) - 中英双语文档内容一致
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
ONE-514(改动 D),父单 ONE-510 规格 v1.2 §4:README 仍写着「去 CF 控制台给 Worker 配
TABLE_PREFIX」,与已合入的改动 A(CI 写绑定)、E(APP_URL 可选、冒烟自动推导)、F(TOTP_ENCRYPTION_KEY由 GitHub Secret 注入)冲突,需同步。本 PR 只改文档,不动代码/脚本/schema/迁移。
改动文件
README.mdREADME.zh-CN.md具体改动
TABLE_PREFIX改写为唯一真源(GitHub 变量 → 部署自动写入 Worker 绑定,控制台不要再配);TOTP_ENCRYPTION_KEY加入 Repository secrets 清单(经--secrets-file注入、缺失即失败关闭);APP_URL降为可选(未配则自动解析 workers.dev 地址);「存量部署迁移到 CI」注记扩展到三把密钥。Configure variables and secrets→Optional Worker variables,说明无需任何控制台步骤,只剩APP_URL/RP_ID/APP_ORIGIN三项可在 Worker 上按需配置;补「控制台改TABLE_PREFIX会被迁移守卫拦下、且下次部署按 GitHub 变量覆回」与「把控制台TOTP_ENCRYPTION_KEY同值搬进 GitHub Secret 后再删控制台那份」。APP_URL,两者都与部署成败无关。TABLE_PREFIX要与 Worker 同名明文变量一致」的残留,改为部署托管 + 守卫说明(含 Worker 不存在但<prefix>_表与账本仍在时放行);APP_URL标注可选;token 权限补 Workers Scripts:Read。验证
pnpm check(biome):111 files,无 issuepnpm build:2 tasks successfulpnpm test:110 pass / 0 failnode --test .github/scripts/test-d1-migrations.mjs .github/scripts/test-deploy-checks.mjs:52 pass / 0 failCI 无 paths 过滤,本 PR 会触发完整 CI(Check/Typecheck/Build/Test + Audit)。