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"