mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user