diff --git a/httpdocs/deploy.sh b/httpdocs/deploy.sh index 2c91db4..2de15be 100644 --- a/httpdocs/deploy.sh +++ b/httpdocs/deploy.sh @@ -5,10 +5,10 @@ set -e # Konfiguration – einmalig anpassen # ══════════════════════════════════════════════════════════════════════ -# Verzeichnis des Git-Repos +# Verzeichnis des Git-Repos (enthält httpdocs/, .git/, etc.) GIT_DIR="/var/www/vhosts/memap.de/httpdocs/timetracking/timetracking-git-repo" -# Verzeichnis, aus dem die App tatsächlich läuft (Document Root eine Ebene drüber) +# Verzeichnis, aus dem die App läuft (Document Root ist dann APP_DIR/public) APP_DIR="/var/www/vhosts/memap.de/httpdocs/timetracking/timetracking-copy" # Binaries @@ -29,6 +29,7 @@ echo "⏳ [1/7] Git pull..." git -C "$GIT_DIR" pull # ── 2. Dateien ins App-Verzeichnis synchronisieren ──────────────────── +# Quelle: httpdocs/ im Repo, nicht der Repo-Root echo "⏳ [2/7] Dateien synchronisieren..." rsync -av --delete \ --exclude=".git" \ @@ -37,7 +38,7 @@ rsync -av --delete \ --exclude="var/log" \ --exclude=".env.local" \ --exclude=".env.*.local" \ - "$GIT_DIR/" "$APP_DIR/" + "$GIT_DIR/httpdocs/" "$APP_DIR/" # ── 3. Composer Dependencies installieren ───────────────────────────── echo "⏳ [3/7] Composer install..."