diff --git a/httpdocs/deploy.sh b/httpdocs/deploy.sh index aec819f..275acbd 100644 --- a/httpdocs/deploy.sh +++ b/httpdocs/deploy.sh @@ -14,7 +14,7 @@ APP_DIR="/var/www/vhosts/memap.de/httpdocs/timetracking/timetracking-copy" # Binaries PHP="/opt/plesk/php/8.4/bin/php" COMPOSER="/usr/local/bin/composer84" -NPM="/usr/bin/npm" +NPM="/home/flo/.nodenv/versions/16/bin/npm" # ══════════════════════════════════════════════════════════════════════ @@ -43,6 +43,7 @@ rsync -av --delete \ # ── 3. Composer Dependencies installieren ───────────────────────────── echo "⏳ [3/7] Composer install..." cd "$APP_DIR" +export APP_ENV=prod "$PHP" "$COMPOSER" install --no-dev --optimize-autoloader --no-interaction --no-scripts # ── 4. Central-Migrationen ausführen ──────────────────────────────────