优化构建

This commit is contained in:
yml
2026-06-05 10:45:15 +08:00
parent ac5d1ea25d
commit b1a1da726a
3 changed files with 241 additions and 2 deletions
+8 -2
View File
@@ -316,8 +316,14 @@ main() {
log "启动生产服务..."
compose up -d
else
log "构建并启动生产服务..."
compose up -d --build
log "构建后端镜像..."
compose build backend
log "构建前端镜像..."
compose build frontend
log "启动生产服务..."
compose up -d --no-build
fi
wait_service_healthy mysql "MySQL"