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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user