Jeder Server aktualisiert sich eigenstaendig aus dem Repo – kein
Cross-Server-SSH, kein "both". 137 und 164 komplett getrennt.
- server-update.sh: laeuft AUF dem Server (git pull --ff-only → alembic
upgrade head → restart → health). Guard: bricht ab wenn venv fehlt.
- push-frontend.sh: lokal, baut Frontend + rsync dist/ an EINEN Server
(Node laeuft nicht auf den Servern, dist ist gitignored). Guard gegen
Ausfuehrung auf einem Zielserver.
- deploy.sh + update.sh stillgelegt (Abbruch-Stubs): deploy.sh rsyncte den
Arbeitsbaum in den Server-git-Baum und verschmutzte ihn (git pull brach);
update.sh koppelte beide Server ("both").
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
782 B
Bash
Executable File
15 lines
782 B
Bash
Executable File
#!/usr/bin/env bash
|
||
# =============================================================================
|
||
# STILLGELEGT – nicht mehr verwenden.
|
||
#
|
||
# Dieses Skript rsyncte das lokale Arbeitsverzeichnis in den git-Baum des
|
||
# Servers und verschmutzte ihn dadurch (spätere 'git pull' schlugen fehl).
|
||
#
|
||
# Neuer, entkoppelter Ablauf (jeder Server macht sich selbst):
|
||
# 1. Lokal: git add -A && git commit && git push origin main
|
||
# 2. Server: ssh root@<host> 'cd /opt/timemaster && ./server-update.sh'
|
||
# 3. Frontend (falls geändert, lokal): ./push-frontend.sh <137|164>
|
||
# =============================================================================
|
||
echo "deploy.sh ist stillgelegt. Nutze: git push → server-update.sh (auf dem Server) → push-frontend.sh (lokal)." >&2
|
||
exit 1
|