fix: copy VERSION to web root on every deploy

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 14:30:41 +00:00
parent 7e4b9e18b2
commit 483ab8a002
+3
View File
@@ -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