Deploy: index.html wieder als Symlink auf landingpage/index.html

nginx folgt dem Link und liefert die Landingpage direkt unter
https://jamulix.de/ aus. Weiterleitungsseite webroot/index.html entfernt,
README angepasst.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-10-07 20:07:24 +02:00
commit 74b8d18991

View file

@ -14,11 +14,9 @@ npm run build
echo "Synchronisiere landingpage/ nach /var/www/html/landingpage/..."
sudo rsync -av --delete landingpage/ /var/www/html/landingpage/
echo "Setze Weiterleitung: index.html → /landingpage/"
# rm zuerst: ein alter Symlink würde sonst landingpage/index.html überschreiben
echo "Setze symbolischen Link: index.html → landingpage/index.html"
sudo rm -f /var/www/html/index.html
sudo cp webroot/index.html /var/www/html/index.html
sudo chown www-data:www-data /var/www/html/index.html
sudo ln -s landingpage/index.html /var/www/html/index.html
echo "Kopiere Fehlerseiten: landingpage/<code>.html → <code>.html"
for c in $ERROR_PAGES; do