Files
backend_v2/.gitignore
toom1996 2e76507d37 deploy: 本地预构建发布(push-build),对齐 1Panel 与 backend_v2 目录
- 新增 Dockerfile.prebuilt / scripts/push-build.sh:本机构建、只上传产物,服务器零编译
- deploy.sh 增加 --prebuilt(自动 --no-pull + 产物校验),并保留 --no-cache
- compose 支持 BACKEND_DOCKERFILE / WEB_DOCKERFILE 切换;预构建时用 prebuilt 变体
- init-db.sh / scripts/backup-db.sh 改为 docker exec 1Panel 的 Postgres 容器
- WEB_DIR 默认改为 ../frontend_v2;nginx 切换文件改到 .deploy/ 避免弄脏工作区
- 新增 .gitattributes 固定脚本与配置为 LF
2026-10-21 00:02:18 +08:00

57 lines
868 B
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.

# 编译产物
/bin/
/server
/server.exe
/migrate
/migrate.exe
/backend_server.exe
/dev_backend.exe
*.exe
*.exe~
gotest*.exe
# 临时备份文件
*~
# 上传图片
/uploads/*
!/uploads/.gitkeep
# 数据库备份
/db/backups/
# dbtool 陈旧导出产物(权威 schema 是仓库根目录的 /db_dump.sql,勿混淆)
cmd/dbtool/db_dump.*
# 本地配置
configs/config.local.yml
# 敏感/本地文件
admin_cookies.txt
# 编辑器 / 系统文件
.idea/
.vscode/
*.swp
.DS_Store
# 依赖
/vendor/
# 日志与进程输出(server.out / server.err 曾被误提交进仓库)
*.log
*.out
*.err
.superpowers
# 部署密钥(docker-compose 读取的 .env,绝不入库)
.env
.env.*
!.env.example
# 部署状态与备份(deploy.sh 生成,不进版本库)
.deploy/
backups/
# 本地预构建产物(scripts/push-build.sh 生成)
/server-linux-amd64