From 6b906da406e10a8b6357599fd51b5ebef3094ac7 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 11 Jun 2026 21:35:24 +0000 Subject: [PATCH] deploy: auto-sync reactor.py to /opt/jarvis-arc on deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When deploy/reactor.py changes in a push, the deploy runner now copies it to the runtime location and restarts jarvis-arc.service automatically. Eliminates the two-copy drift problem — repo is now canonical. --- deploy/jarvis-deploy.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/jarvis-deploy.sh b/deploy/jarvis-deploy.sh index f3b4296..8cda0ca 100755 --- a/deploy/jarvis-deploy.sh +++ b/deploy/jarvis-deploy.sh @@ -79,6 +79,13 @@ while IFS= read -r path; do if [[ "$path" == *"jarvis"* ]]; then systemctl reload lsws 2>/dev/null || systemctl restart lsws 2>/dev/null log "OLS reloaded for JARVIS deploy" + + # Sync reactor.py to runtime location if it changed + if echo "$CHANGED" | grep -q 'deploy/reactor.py'; then + cp "$path/deploy/reactor.py" /opt/jarvis-arc/reactor.py + systemctl restart jarvis-arc + log "Arc Reactor updated and restarted (reactor.py changed)" + fi fi done <<< "$SNAPSHOT"