cms: Site beim Container-Start bauen (sonst 404 auf / vor erstem Publish)

public/ ist git-ignored und fehlt im frischen Clone — Entrypoint baut die
Hugo-Site einmal aus content/. Ausserdem: Script-Output stellt klar, dass
:8000 nur das API-Gateway ist (keine Web-UI).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 11:09:25 +02:00
parent 5a66c27e02
commit 8662970fe5
3 changed files with 21 additions and 4 deletions
+3 -3
View File
@@ -159,7 +159,7 @@ cat <<EOF
Admin: http://${IPADDR:-<ip>}:8080/admin/
Live: http://${IPADDR:-<ip>}:8080/
Supabase: http://${IPADDR:-<ip>}:8000
Supabase: http://${IPADDR:-<ip>}:8000 (nur API-Gateway, keine Web-UI — / gibt 404, ist normal)
Login-User anlegen (im Container, nach dem Start):
pct enter ${CTID}
@@ -172,8 +172,8 @@ Login-User anlegen (im Container, nach dem Start):
-d '{"email":"karim@gabrielevarano.ch","password":"DEIN-PASSWORT","email_confirm":true}'
Hinweise:
Privates Repo: GIT_TOKEN oben setzen (Format "tokenname:tokenwert"),
sonst schlägt der Clone fehl.
:8000 ist das Supabase-API-Gateway (Kong), keine Web-Oberfläche.
Das Admin-Login (:8080/admin/) spricht im Hintergrund damit.
• Für Domain/HTTPS: SITE_URL + API_EXTERNAL_URL in .env auf die
öffentliche Adresse setzen und 'docker compose up -d --build' neu.
• Logs: pct enter ${CTID}; cd ${APP_DIR}/cms; docker compose logs -f