Files
timemaster/deploy.sh
T
patrickandClaude Opus 4.8 f24b25b22d
Security Audit / Python Dependency Audit (push) Has been cancelled
Security Audit / Node.js Dependency Audit (push) Has been cancelled
chore(deploy): entkoppelte Self-Update-Skripte pro Server
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>
2026-07-08 16:29:43 +02:00

15 lines
782 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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