Server sync capture
Execute from: 2 · Server sync (WF-SYNC playbook step). This runbook is the command card.
Changes happened on the server (admin uploads, installer, manual SSH edit) and must land in git before the next deploy.
flowchart LR S["Server writes files"] --> C["Capture commit<br/>on production/develop"] C --> R["👤 Review list<br/>no secrets"] R --> D["Merge to develop"] D --> M["Continue MWF1 ship"]Capture (manual SSH)
Section titled “Capture (manual SSH)”ssh <SSH_ALIAS>cd <DEPLOY_PATH>git status # 👤 Review — no .env, vendor/, logsgit add storage/app public/images # example paths onlygit commit -m "🔄 ⬛ T5 ServerSync-Upload: Capture <description>"git push origin develop
# Localgit checkout develop && git pull origin developPreferred
Section titled “Preferred”Trigger the repo capture-production GitHub Action (Actions → workflow dispatch) when configured — same review gate applies.
Never stage
Section titled “Never stage”.env · vendor/ · node_modules/ · storage/logs/ · storage/sessions/ · *.key · *.pem
Rollback bad sync
Section titled “Rollback bad sync”git log --oneline -5git revert <sync-commit-hash>git push origin develop