deploy: auto-sync reactor.py to /opt/jarvis-arc on deploy

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.
This commit is contained in:
2026-06-11 21:35:24 +00:00
parent c2c7a2627a
commit 6b906da406
+7
View File
@@ -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"