Files
backend_v2/.gitattributes
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

12 lines
382 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.

# Shell 脚本必须保持 LF:CRLF 会让 Linux 上的 bash 直接报语法错误
# (典型报错:syntax error near unexpected token `$'do\r'')
*.sh text eol=lf
# Dockerfile 同理(CRLF 会导致某些解析器把续行符后的 \r 当成参数)
Dockerfile text eol=lf
Dockerfile.* text eol=lf
# compose / nginx 配置也统一 LF
*.yml text eol=lf
*.conf text eol=lf