docs: 完善镜像发版流程文档并清理过时文档

补充本地打包到线上更新的分步说明;部署脚本对示例密钥改为警告而非阻断。
This commit is contained in:
2026-06-18 14:35:05 +08:00
parent 4de320f143
commit b929fd01c0
7 changed files with 204 additions and 1102 deletions

View File

@@ -156,9 +156,11 @@ validate_prod_env() {
[ -n "$postgres_password" ] || die ".env.docker 缺少 POSTGRES_PASSWORD"
[ -n "$jwt_secret" ] || die ".env.docker 缺少 JWT_SECRET"
if [ "$allow_defaults" != "true" ]; then
[ "$postgres_password" != "thebet365" ] || die "POSTGRES_PASSWORD 仍是示例值;如确为测试环境,请加 --allow-default-secrets"
[ "$jwt_secret" != "change-me-in-production-use-long-random-string" ] || die "JWT_SECRET 仍是示例值;如确为测试环境,请加 --allow-default-secrets"
if [ "$postgres_password" = "thebet365" ]; then
warn "POSTGRES_PASSWORD 仍是示例值 thebet365生产环境建议尽快修改"
fi
if [ "$jwt_secret" = "change-me-in-production-use-long-random-string" ]; then
warn "JWT_SECRET 仍是示例值,生产环境建议尽快修改"
fi
if [ "$seed_database" = "true" ]; then