Deploy only what changed; pages notice a new version; home page: personal analyses
CI / test (push) Successful in 3m10s
CI / build (push) Skipped
CI / deploy (push) Skipped

- CI: ci/changed-services.sh compares HEAD with the last deployment's v*
  tag: the Rust tests run only when a Rust service changed, only the
  changed images are built, and the server's .env gets a tag per built
  service (TAG_FRONTEND, TAG_BACKEND, ...; TAG stays the fallback), so only
  their containers restart. Everything when in doubt.
- The frontend image knows its version (APP_VERSION, the commit): Next's
  deploymentId (a page from an older version reloads on navigation) and
  /api/version. VersionWatcher checks every 5 minutes and when the tab
  comes to the front: idle with nothing typed, the page reloads; otherwise
  a "Frissült az oldal" notice offers it.
- Home page: "Nem sablonszöveg, hanem a te elemzésed" in the hero, the
  "Miért más?" section now about analyses written for each chart; the two
  hero buttons side by side on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 20:40:43 +00:00
co-authored by Claude Opus 5.5
parent 083de72877
commit 27a6226d86
11 changed files with 231 additions and 32 deletions
+6 -6
View File
@@ -28,7 +28,7 @@ services:
restart: unless-stopped
horoscope-api:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-horoscope-api:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-horoscope-api:${TAG_HOROSCOPE_API:-${TAG:-latest}}
read_only: true
logging: *logging
restart: unless-stopped
@@ -75,7 +75,7 @@ services:
restart: unless-stopped
backend:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-backend:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-backend:${TAG_BACKEND:-${TAG:-latest}}
environment:
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD}@postgres:5432/sorsfonalak
HOROSCOPE_API_URL: http://horoscope-api:8080
@@ -134,7 +134,7 @@ services:
# E-mail delivery, cleanup and the other background jobs.
worker:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-worker:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-worker:${TAG_WORKER:-${TAG:-latest}}
environment:
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD}@postgres:5432/sorsfonalak
# forum: the forum's digests, daily sky thread, listener e-mails, weekly summary.
@@ -167,7 +167,7 @@ services:
# The same image writing the analyses and answers (quick and slow lane);
# OPENROUTER_API_KEY comes from .env.secrets.
worker-ai:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-worker:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-worker:${TAG_WORKER:-${TAG:-latest}}
environment:
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD}@postgres:5432/sorsfonalak
WORKER_TASKS: analyses
@@ -195,7 +195,7 @@ services:
# The forum (docs/kozosseg.md): its own service on the same database and
# login; switched on for the visitors by FORUM_URL in the frontend below.
forum:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-forum:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-forum:${TAG_FORUM:-${TAG:-latest}}
environment:
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD}@postgres:5432/sorsfonalak
# The links in the forum's e-mails.
@@ -219,7 +219,7 @@ services:
restart: unless-stopped
frontend:
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-frontend:${TAG:-latest}
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-frontend:${TAG_FRONTEND:-${TAG:-latest}}
environment:
BACKEND_URL: http://backend:8081
HOROSCOPE_API_URL: http://horoscope-api:8080