From f4dd3dad138e5dedbb2a884c8d3b2ae7d1b2ccd2 Mon Sep 17 00:00:00 2001 From: xiamuceer Date: Mon, 29 Dec 2025 12:25:18 +0800 Subject: [PATCH] =?UTF-8?q?update:1.=E6=9B=B4=E6=96=B0=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=94=AE=E6=9C=AC=EF=BC=8C=E6=94=AF=E6=8C=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scripts/entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/scripts/entrypoint.sh b/backend/scripts/entrypoint.sh index 30bdb0a..58b5bc2 100644 --- a/backend/scripts/entrypoint.sh +++ b/backend/scripts/entrypoint.sh @@ -4,12 +4,13 @@ set -e # 遇到错误立即退出 -# 获取版本信息(从config.py中提取) -APP_VERSION=$(grep -oP "app_version:\s*str\s*=\s*\"\K[^\"]*" /app/app/config.py || echo "unknown") +# 获取版本信息(从环境变量) +APP_VERSION="${APP_VERSION:-1.0.0}" +APP_NAME="${APP_NAME:-MuMuAINovel}" BUILD_TIME=$(date '+%Y-%m-%d %H:%M:%S') echo "================================================" -echo "🚀 MuMuAINovel 启动中..." +echo "🚀 ${APP_NAME} 启动中..." echo "📦 版本: v${APP_VERSION}" echo "🕐 启动时间: ${BUILD_TIME}" echo "================================================"