`A && B || C` in bash fires C when A is false (service intentionally
skipped). Replaced with if/fi blocks so || FAILED=1 only triggers
when the health check itself fails.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- frontend depends_on: service_started (not service_healthy) — docker compose
up -d now returns once containers start, not after full health chain resolves
- frontend healthcheck: use node HTTP check (wget/curl not in alpine runner)
- start_period: 60s (Next.js can take time on first request)
- on_error: show 60 log lines instead of 30
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
base.py imports anthropic_modelname_to_contextsize directly, so patching
utils module attribute alone doesn't affect calls inside base.py.
Now patches both utils and base modules for Anthropic and Gemini.
Also: show docker build output in deploy.sh (was suppressed, hid errors).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- llm_factory.py: claude-sonnet-4-6 → claude-sonnet-4-5 (4.6 doesn't
exist in llama-index-llms-anthropic; 4.5/20250929 is the latest known)
- deploy.sh + rollback.sh: git commands now run as $SUDO_USER when
called via sudo, so Bitbucket SSH key is found (root has no SSH key)
- frontend: update Claude label to match
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add git stash before git pull to handle locally created directories
- Replace invalid ROW_COUNT() with grep on psql command tag output
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>