fix(deploy): include nginx and kong in full-reset

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-24 18:27:39 -08:00
parent a54b82cab3
commit aaf43155d9
1 changed files with 10 additions and 7 deletions

View File

@ -954,15 +954,18 @@ do_full_reset() {
log_step "启动后端服务..."
do_start backend docker
# 6. 等待服务就绪
# 6. 启动 Nginx 和 Kong
log_step "启动 Nginx..."
do_start nginx docker
log_step "启动 Kong..."
do_start kong docker
# 7. 等待服务就绪
sleep 5
# 7. 配置 Kong (如果需要)
if docker ps | grep -q kong; then
log_step "配置 Kong API 网关..."
sleep 3
do_kong setup 2>/dev/null || log_warning "Kong 配置跳过"
fi
# 8. 配置 Kong 路由
log_step "配置 Kong API 网关..."
do_kong setup 2>/dev/null || log_warning "Kong 配置跳过"
log_success "数据重置完成!"
echo ""