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
This commit is contained in:
11
.gitattributes
vendored
Normal file
11
.gitattributes
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user