fix(deploy): update start_kong for DB-less mode

Kong is configured to use DB-less mode with declarative config
(kong/kong.yml), so remove the obsolete kong-database and
migrations steps from the deploy script.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-23 04:10:35 -08:00
parent d5b751fdf8
commit 632e27213a
1 changed files with 3 additions and 8 deletions

View File

@ -387,16 +387,11 @@ start_infrastructure() {
log_success "基础设施启动完成"
}
# 启动 Kong 网关
# 启动 Kong 网关 (DB-less 模式)
start_kong() {
log_step "启动 Kong API 网关..."
$DOCKER_COMPOSE up -d kong-database
sleep 5
# Kong 数据库迁移
$DOCKER_COMPOSE run --rm kong kong migrations bootstrap || true
log_step "启动 Kong API 网关 (DB-less 模式)..."
# Kong 使用 DB-less 模式,直接启动即可
$DOCKER_COMPOSE up -d kong
wait_for_service localhost 8000 "Kong"