From 321a88fa28b660d121a0beff1a21832c180d0749 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Wed, 10 Jun 2026 14:30:41 +0000 Subject: [PATCH] fix: copy VERSION to web root on every deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy-runner.sh was rsyncing panel/public/ but VERSION lives at repo root — web root /srv/novacpx/public/VERSION was perpetually stale. Co-Authored-By: Claude Sonnet 4.6 --- deploy/deploy-runner.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/deploy-runner.sh b/deploy/deploy-runner.sh index 830819b..e26afa5 100644 --- a/deploy/deploy-runner.sh +++ b/deploy/deploy-runner.sh @@ -79,6 +79,9 @@ while IFS='|' read -r REPO_PATH WEB_ROOT COMMIT QUEUED_BRANCH; do rsync -av "$REPO_PATH/panel/bin/" /opt/novacpx/bin/ >> "$LOG" 2>&1 chmod +x /opt/novacpx/bin/*.php 2>/dev/null || true + # Copy VERSION to web root so /VERSION endpoint stays current + [[ -f "$REPO_PATH/VERSION" ]] && cp "$REPO_PATH/VERSION" "$WEB_ROOT/VERSION" + # Run pending DB migrations (SQLite) MIGR_DIR="$REPO_PATH/db/migrations" if [[ -d "$MIGR_DIR" && -f "$DB_PATH" ]]; then