- next.config.mjs: basePath '/landingpage' gesetzt, ignoreBuildErrors entfernt - package.json: build-Script benennt out/ → landingpage/ um - .gitignore: out/ und landingpage/ als ignoriert markiert - programmer-graphic.tsx: statischer Import statt Pfad-String (basePath-Fix) - footer.tsx: GitHub-Link → Forgejo-Profil - deploy_to_production.sh / deploy_to_localhost.sh: neu geschrieben - public/: Programmierer-Grafiken und Favicon hinzugefügt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
624 B
Bash
Executable file
23 lines
624 B
Bash
Executable file
#!/bin/bash
|
|
# Lokales Deployment (Webroot: /var/www/html/)
|
|
|
|
set -e
|
|
|
|
LOCAL_DIR="/home/dschlueter/neue_jamulix.de_landing_page/jamulix.de_webpage_2"
|
|
|
|
cd "$LOCAL_DIR"
|
|
|
|
echo "Baue die Seite..."
|
|
npm run build
|
|
|
|
echo "Synchronisiere landingpage/ nach /var/www/html/landingpage/..."
|
|
sudo rsync -av --delete landingpage/ /var/www/html/landingpage/
|
|
|
|
echo "Setze symbolischen Link: index.html → landingpage/index.html"
|
|
sudo rm -f /var/www/html/index.html
|
|
sudo ln -s landingpage/index.html /var/www/html/index.html
|
|
|
|
sudo chown -R www-data:www-data /var/www/html/landingpage/
|
|
|
|
echo ""
|
|
echo "Deployment abgeschlossen: http://localhost"
|