fix(presence-service): 添加 --no-deps 避免重启已运行的基础设施

deploy.sh start/up 命令添加 --no-deps 选项,防止在启动
presence-service 时重新创建已经运行的共享基础设施容器
(postgres, redis, kafka)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-02 22:19:40 -08:00
parent 086d82f98a
commit fcd97f26cf
1 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,8 @@ case "$1" in
load_env
log_info "Starting $SERVICE_NAME using shared infrastructure..."
cd "$SERVICES_DIR"
docker compose up -d "$SERVICE_NAME"
# Use --no-deps to avoid recreating infrastructure that's already running
docker compose up -d --no-deps "$SERVICE_NAME"
log_success "$SERVICE_NAME started"
log_info "Waiting for service to be healthy..."
sleep 5
@ -94,7 +95,8 @@ case "$1" in
load_env
log_info "Starting $SERVICE_NAME in foreground..."
cd "$SERVICES_DIR"
docker compose up "$SERVICE_NAME"
# Use --no-deps to avoid recreating infrastructure that's already running
docker compose up --no-deps "$SERVICE_NAME"
;;
logs)