Build: basePath /landingpage, Deploy-Skripte, Bild-Fix
- 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>
This commit is contained in:
parent
3b6854329f
commit
cfdb244c29
88 changed files with 33431 additions and 484 deletions
25
deploy_to_production.sh
Executable file
25
deploy_to_production.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
# Deployment-Skript für jamulix.de
|
||||
|
||||
set -e
|
||||
|
||||
REMOTE_USER="${USER}"
|
||||
REMOTE_HOST="jamulix.de"
|
||||
REMOTE_DIR="/var/www/jamulix.de/html"
|
||||
LOCAL_DIR="/home/dschlueter/neue_jamulix.de_landing_page/jamulix.de_webpage_2"
|
||||
|
||||
echo "Starte Deployment auf $REMOTE_HOST..."
|
||||
|
||||
cd "$LOCAL_DIR"
|
||||
|
||||
echo "Baue die Seite..."
|
||||
npm run build
|
||||
|
||||
echo "Synchronisiere landingpage/ nach $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/landingpage/..."
|
||||
rsync -av --delete landingpage/ "$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/landingpage/"
|
||||
|
||||
echo "Setze symbolischen Link: index.html → landingpage/index.html"
|
||||
ssh "$REMOTE_USER@$REMOTE_HOST" "rm -f '$REMOTE_DIR/index.html' && ln -s landingpage/index.html '$REMOTE_DIR/index.html'"
|
||||
|
||||
echo ""
|
||||
echo "Deployment abgeschlossen: https://jamulix.de"
|
||||
Loading…
Add table
Add a link
Reference in a new issue