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:
parent
4971cd4fee
commit
74b8d18991
1 changed files with 8 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue