- admin-web: TaskSelector 重构为按域+层全链路展示,新增同步检查功能 - admin-web: TaskConfig 动态加载 Flow/处理模式定义,DWD 表过滤内嵌域面板 - admin-web: App hydrate 完成前显示 loading,避免误跳 /login - backend: 新增 /tasks/sync-check 对比后端与 ETL 真实注册表 - backend: 新增 /tasks/flows 返回 Flow 和处理模式定义 - apps/mcp-server: 新增 MCP Server 模块(百炼 AI PostgreSQL 只读查询) - scripts/server: 新增 setup-server-git.py + server-exclude.txt - docs: 更新 LAUNCH-CHECKLIST 添加 Git 排除配置步骤 - pyproject.toml: workspace members 新增 mcp-server
123 lines
2.6 KiB
Plaintext
123 lines
2.6 KiB
Plaintext
# ==============================================================================
|
||
# 服务器端 Git 排除规则
|
||
# ==============================================================================
|
||
# 用途:服务器上不需要的文件,避免占用磁盘空间和干扰运行环境。
|
||
# 使用方式:运行 scripts/server/setup-server-git.py 自动配置。
|
||
#
|
||
# 原则:服务器只跑后端 API(+ 可选 ETL),其余全部排除。
|
||
# 注意:此文件影响未 track 的新文件。
|
||
# 对于已 track 但服务器不需要的文件,
|
||
# 由 setup-server-git.py 配合 skip-worktree 处理。
|
||
|
||
# ===== 环境配置(服务器有自己的 .env,不用 Git 里的) =====
|
||
.env
|
||
.env.local
|
||
# 模板保留,方便参考
|
||
# !.env.template
|
||
|
||
# ===== ETL 导出数据(仅开发机留存) =====
|
||
export/
|
||
|
||
# ===== 文档(开发参考用,服务器不需要) =====
|
||
docs/
|
||
# 如果需要部署文档可单独拉取,但运行时不依赖
|
||
|
||
# ===== H5 原型设计稿 =====
|
||
# 已在 docs/h5_ui/ 下,被 docs/ 规则覆盖
|
||
|
||
# ===== 小程序源码(服务器不编译小程序) =====
|
||
apps/miniprogram/
|
||
|
||
# ===== 管理后台源码(服务器只需要 dist/,不需要源码和 node_modules) =====
|
||
apps/admin-web/src/
|
||
apps/admin-web/node_modules/
|
||
apps/admin-web/pnpm-lock.yaml
|
||
|
||
# ===== 测试(服务器不跑测试) =====
|
||
tests/
|
||
.hypothesis/
|
||
.pytest_cache/
|
||
pytest-cache-files-*/
|
||
|
||
# ===== 示例数据 =====
|
||
samples/
|
||
|
||
# ===== 临时目录 =====
|
||
tmp/
|
||
|
||
# ===== 运维脚本中的一次性脚本(服务器不需要开发用的 ops 脚本) =====
|
||
scripts/ops/
|
||
scripts/audit/
|
||
scripts/migrate/
|
||
|
||
# ===== 根目录散文件(开发用,服务器不需要) =====
|
||
*.png
|
||
*.code-workspace
|
||
start-admin.bat
|
||
.kiroignore
|
||
|
||
# ===== Kiro 配置(服务器上不用 Kiro) =====
|
||
.kiro/
|
||
|
||
# ===== infra 配置文档(参考用,服务器不需要) =====
|
||
infra/
|
||
|
||
# ===== 日志文件(服务器自己产生的日志不入 Git) =====
|
||
logs/
|
||
*.log
|
||
*.jsonl
|
||
|
||
# ===== Python 虚拟环境(服务器自己 uv sync 生成) =====
|
||
.venv/
|
||
venv/
|
||
ENV/
|
||
env/
|
||
|
||
# ===== Python 缓存与构建产物 =====
|
||
__pycache__/
|
||
*.pyc
|
||
*.py[cod]
|
||
*$py.class
|
||
*.so
|
||
.Python
|
||
build/
|
||
develop-eggs/
|
||
downloads/
|
||
eggs/
|
||
.eggs/
|
||
lib/
|
||
lib64/
|
||
parts/
|
||
sdist/
|
||
var/
|
||
wheels/
|
||
*.egg-info/
|
||
.installed.cfg
|
||
*.egg
|
||
dist/
|
||
|
||
# ===== 测试覆盖率 =====
|
||
.coverage
|
||
htmlcov/
|
||
|
||
# ===== Node =====
|
||
node_modules/
|
||
|
||
# ===== infra 敏感文件 =====
|
||
infra/**/*.key
|
||
infra/**/*.pem
|
||
infra/**/*.secret
|
||
|
||
# ===== IDE =====
|
||
.idea/
|
||
.vscode/
|
||
*.swp
|
||
*.swo
|
||
*~
|
||
.specstory/
|
||
.cursorindexingignore
|
||
|
||
# ===== Windows 杂项 =====
|
||
*.lnk
|
||
.Deleted/
|