mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:41:08 +02:00
fix(startup): force-recreate synapse on boot to avoid stale config cache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
667d8cf96d
commit
aeef352082
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,11 @@ log "Starting Docker containers..."
|
|||
cd "$PROJECT_ROOT"
|
||||
docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" up -d --no-build 2>&1 | tee -a "$LOG_FILE"
|
||||
|
||||
# ─── Force-recreate stateful containers that cache config ───
|
||||
# synapse copies homeserver.yaml at startup; stale container uses old cached config
|
||||
log "Force-recreating config-sensitive containers..."
|
||||
docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" up -d --no-build --force-recreate synapse 2>&1 | tee -a "$LOG_FILE"
|
||||
|
||||
# ─── Wait and verify ───
|
||||
log "Waiting 45s for services to initialize..."
|
||||
sleep 45
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue