Commit 20e787d
deploy: git pull on VPS before reload, sync cards/ down
Drag-drop on the live board was 404-ing for cards added from a
developer's local repo. Root cause: the running app's git-sync
layer pushes API mutations but doesn't pull, so cards landing in
main from any path other than the API never reach the VPS disk.
The UI renders them anyway because content collections are
bundled into dist/ at build time, which IS in sync with main.
The mismatch produces a 404 on every move/edit of those cards.
Fix: git fetch && git pull --rebase --autostash inside the deploy
workflow, between rsync and pm2 reload. Catches the VPS's cards/
up to main on every deploy. --autostash defends the debounced-
commit window in the unlikely case it fires during the pull.
Long-term fix would be to have the running app pull on a timer
(or on startup), so VPS state never drifts beyond a deploy
cadence. Worth doing in a follow-up but the deploy-time pull
covers the main pain point.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1d822d5 commit 20e787d
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
0 commit comments