Repo hygiene: fix .gitignore, normalize line endings, correct repo paths
- Replace misspelled/ineffective ignore file with a real .gitignore: deploy/ (contains SSH private key), *.pem, .env*, and Python/Django/ Wagtail runtime artifacts are now excluded from version control - Add .gitattributes (* text=auto eol=lf) to stop CRLF/LF churn that made all 26 tracked files show spurious full-file diffs - Correct repo root path /mnt/d/OPC/skelet -> /mnt/d/opc_project/skelet in AGENTS.md, 00-ai-start-here, 03-tech-stack, 90-harness-reference, current-state (progress.md history left as-is, append-only) - Update current-state.md snapshot and append maintenance record to progress.md per harness rules Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
## 固定开工流程
|
||||
|
||||
1. `pwd`:确认在仓库根目录(标准开发环境为 WSL/Linux,路径 `/mnt/d/OPC/skelet`)。
|
||||
1. `pwd`:确认在仓库根目录(标准开发环境为 WSL/Linux,路径 `/mnt/d/opc_project/skelet`)。
|
||||
2. 读 [`../progress.md`](../progress.md) 和 [`current-state.md`](current-state.md)。
|
||||
3. 运行 `git log --oneline -5`,了解最近提交。
|
||||
4. 如果 `init.sh` 已配置真实命令,运行标准验证;如果脚本仍是占位,先完成 `T-001`。
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
| 媒体存储 | 本地 media 目录 | 已定 | 2 核 2G VPS 第一版足够;后续可迁移 S3/R2/OSS。 |
|
||||
| 部署方式 | 单 VPS,Gunicorn + Nginx | 待实现 | 面向 2 核 2G VPS;先不引入 Docker 作为必需项。 |
|
||||
| 测试 | Django test / pytest 待定 | 待定 | T-001 初始化后以项目实际生成结构为准。 |
|
||||
| 开发环境 | WSL2 / Linux + bash | 已定 | 仓库根目录 `/mnt/d/OPC/skelet`;`init.sh` 为标准入口,`init.ps1` 可选。 |
|
||||
| 开发环境 | WSL2 / Linux + bash | 已定 | 仓库根目录 `/mnt/d/opc_project/skelet`;`init.sh` 为标准入口,`init.ps1` 可选。 |
|
||||
| 访问统计 | Plausible / Umami 或等价轻量方案 | 待实现 | 上线前接入(任务 T-305);自然搜索和外链点击是 M3/M4 商业验证的前置数据。 |
|
||||
|
||||
## 二、决策记录与演进
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
|
||||
恢复步骤:
|
||||
|
||||
1. 确认在仓库根目录(WSL 下为 `/mnt/d/OPC/skelet`)。
|
||||
1. 确认在仓库根目录(WSL 下为 `/mnt/d/opc_project/skelet`)。
|
||||
2. 读取 `AGENTS.md`、`docs/00-ai-start-here.md`、`docs/current-state.md`。
|
||||
3. 查看 `docs/06-tasks.md`,领取第一个 `TODO` 且依赖均为 `DONE` 的任务。
|
||||
4. 生产代码尚未初始化时先做 `T-001`,不要提前实现业务页面。
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
- 日期:2026-07-06
|
||||
- 阶段:MVP 起步前,harness 文档已初始化并完成瘦身(元文档合并为 `90-harness-reference.md`,入口统一为 `AGENTS.md`)
|
||||
- 开发环境:WSL2 / Linux,仓库根目录 `/mnt/d/OPC/skelet`,bash 为标准命令形态
|
||||
- git:已初始化,主分支 `main`
|
||||
- 开发环境:WSL2 / Linux,仓库根目录 `/mnt/d/opc_project/skelet`,bash 为标准命令形态
|
||||
- git:已初始化,主分支 `main`;`.gitignore` 已生效(`deploy/` 及凭证类文件不入库),`.gitattributes` 统一 LF 行尾
|
||||
- 技术栈:目标为 Wagtail + Django + Python 3.12 + SQLite;第一版英文单语言站点
|
||||
- 生产代码:尚未初始化
|
||||
- 测试:尚未初始化
|
||||
@@ -30,6 +30,9 @@
|
||||
| `AGENTS.md` | 已有 | AI agent 仓库入口。 |
|
||||
| `CLAUDE.md` | 已有 | Claude Code 薄入口。 |
|
||||
| `progress.md` | 已有 | 只追加执行流水。 |
|
||||
| `business/` | 已有 | 商业计划、内容策略、变现、竞品分析。 |
|
||||
| `deploy/` | 已有,不入库 | 本机部署凭证(SSH 私钥等),被 `.gitignore` 整目录忽略。 |
|
||||
| `.gitignore` / `.gitattributes` | 已有 | 忽略凭证与运行产物;统一 LF 行尾。 |
|
||||
| `init.ps1` / `init.sh` | 已有,占位 | T-001 初始化生产代码后替换真实命令。 |
|
||||
| `manage.py` | 待建 | Wagtail/Django 入口。 |
|
||||
| `requirements.txt` | 待建 | Python 依赖。 |
|
||||
|
||||
Reference in New Issue
Block a user