Fix: jamulix.de/ leitet wieder auf /landingpage/ weiter

Statt Symlink index.html → landingpage/index.html legen die Deploy-Skripte
jetzt webroot/index.html (meta-refresh + location.replace) in den Webroot.
README: Deploy-Schritte aktualisiert, Fehlerseiten-Konfig auf nginx
(error_page) statt Apache korrigiert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-10-07 18:21:48 +02:00
commit c1c0061492

View file

@ -28,8 +28,10 @@ npm run build
echo "Synchronisiere landingpage/ nach $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/landingpage/..."
rsync -av --delete -e "ssh -S $SSH_SOCKET" landingpage/ "$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/landingpage/"
echo "Setze symbolischen Link: index.html → landingpage/index.html"
ssh -S "$SSH_SOCKET" "$REMOTE_USER@$REMOTE_HOST" "rm -f '$REMOTE_DIR/index.html' && ln -s landingpage/index.html '$REMOTE_DIR/index.html'"
echo "Setze Weiterleitung: index.html → /landingpage/"
# rm zuerst: ein alter Symlink würde sonst landingpage/index.html überschreiben
ssh -S "$SSH_SOCKET" "$REMOTE_USER@$REMOTE_HOST" "rm -f '$REMOTE_DIR/index.html'"
rsync -av -e "ssh -S $SSH_SOCKET" webroot/index.html "$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/index.html"
echo "Kopiere Fehlerseiten: landingpage/<code>.html → <code>.html"
ssh -S "$SSH_SOCKET" "$REMOTE_USER@$REMOTE_HOST" "for c in $ERROR_PAGES; do cp '$REMOTE_DIR'/landingpage/\$c.html '$REMOTE_DIR'/\$c.html; done"