Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: deploy script — write .commit-ref after rsync, not before

The rsync step was overwriting the freshly written .commit-ref with
the stale local copy. Move the write to after rsync and exclude
.commit-ref from the system/ sync so the remote-generated ref persists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+6 -1
+6 -1
lith/deploy.fish
··· 126 126 127 127 # Sync repo (git pull on remote) 128 128 echo -e "$GREEN-> Pulling latest code...$NC" 129 - ssh -i $SSH_KEY $LITH_USER@$TARGET_HOST "cd $REMOTE_DIR && git pull origin main && git rev-parse --short HEAD > system/public/.commit-ref" 129 + ssh -i $SSH_KEY $LITH_USER@$TARGET_HOST "cd $REMOTE_DIR && git pull origin main" 130 130 131 131 # Overlay local working tree changes so deploys include uncommitted routing/frontend edits. 132 132 echo -e "$GREEN-> Syncing local lith/ and system/ working tree...$NC" ··· 141 141 --exclude .env \ 142 142 --exclude .DS_Store \ 143 143 --exclude .netlify \ 144 + --exclude .commit-ref \ 144 145 "$REPO_ROOT/system/" \ 145 146 $LITH_USER@$TARGET_HOST:$REMOTE_DIR/system/ 147 + 148 + # Write .commit-ref AFTER rsync so it reflects the actual deployed state 149 + echo -e "$GREEN-> Writing commit ref...$NC" 150 + ssh -i $SSH_KEY $LITH_USER@$TARGET_HOST "cd $REMOTE_DIR && git rev-parse HEAD > system/public/.commit-ref" 146 151 147 152 # Upload env 148 153 echo -e "$GREEN-> Uploading environment...$NC"