feat(ops): host_sync.sh — auto-sync host tree to origin/main (#160) #346
Reference in New Issue
Block a user
Delete Branch "worktree-host-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
סוגר את פער-פריסת-המארח (TaskMaster #160). הכותב/פאנלים/MCP-tools רצים מעץ-המארח (לא בקונטיינר), אז merge+deploy לא מעדכן אותם — קוד-המארח נשאר על ה-
git pullהידני האחרון (ב-2026-06-28 היה 16 commits מאחור).scripts/host_sync.sh(cron כל דקה, כדפוס ה-data/training הקיים) עושה fast-forward בלבד לעץ-המארח כשהוא מאחור. בטוח: אף-פעם לא force → tasks.json הדירטי לעולם לא נדרס (ff נקי משאיר אותו; התנגשות-upstream → log+bail ידני). נתיב-הסוכן spawn-fresh → אין צורך ב-restart; רק שירותי-pm2 ארוכי-החיים שמייבאים קוד-אפליקציה (chat/court-fetch/reaper) עוברים restart, ורק כשקבציהם השתנו (מדויק). log ל-data/logs/host_sync.log.cron (יתווסף על המארח, flock-guarded):
* * * * * flock -n /tmp/host_sync.lock bash ~/legal-ai/scripts/host_sync.shSCRIPTS.md עודכן. bash -n נקי.
🤖 Generated with Claude Code