oms/.gitignore
liufumingren 406e5f3b58 refactor(tools): 发布工具统一到 tools(前后端同时发布 + git 约束 + 共享配置)
- 新增 tools TypeScript 发布 CLI:deploy / deploy:backend / deploy:frontend / rollback / init
- 删除 backend/script 与 frontend/scripts 旧发布脚本,前后端 npm scripts 转发到 tools
- 发布配置独立为 tools/config/deploy.config.local.cjs(模板入库,真实配置与生产 env 不入库)
- 发布受限于 git:工作区有未提交改动默认中止(--allow-dirty 放行),版本记录含 commit/branch
- 后端配置集中到 <deployRoot>/shared-config,本地 env 发布时覆盖共享配置;端口由 EGG_PORT 注入
- 前端服务器端脚本迁至 tools/remote,失败时清理未上线版本目录
- .gitignore 改为忽略 tools 本地配置与临时发布包

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-30 23:04:54 +08:00

54 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dependencies
node_modules/
.pnp
.pnp.js
# backend (egg / sequelize)
logs/
run/
swagger.json
coverage/
.nyc_output/
# 上传的文件资源(本地磁盘,不入库)
uploads/
# 真实部署配置(含服务器地址与 SSH 私钥路径,不入库;模板见 tools/config/*.example.*)
tools/config/deploy.config.local.cjs
# 生产环境变量本机权威副本(发布时覆盖服务端 shared-config,不入库)
tools/config/env.production.local
# 发布工具的本地临时工作目录(发布包/文件清单)
tools/temp/
# 早期发布脚本留在 backend 下的临时工作目录(历史遗留,不入库)
backend/temp/
# 导出任务生成的运行期文件(backend/upload/exports/…,不入库)
backend/upload/
# frontend build output
dist/
build/
out/
.next/
*.tsbuildinfo
# env files
.env
.env.local
.env.*.local
# logs
*.log
# 本地开发运行输出(dev-server / 启动错误转储,不入库)
.dev.err
.dev.out
*.dev.err
*.dev.out
boot.err
boot3.err
fdev.err
# editor / OS
.idea/
.vscode/
.DS_Store
Thumbs.db