There was no deploy path in the repo at all — the site is served by zipgo on raspy2, but that was done by hand, so `search-project -u blog.dev.gabvdl.xyz` found nothing and each deploy was ad-hoc. Add `scripts/deploy.sh` (zipgo deploy CLI, same shape as the other projects), an `npm run deploy`, and the `zipgo.deploy` host→folder map. Deliberately no og-screenshot step: the site ships a curated public/og-image.png that a screenshot would only degrade. Also fix a real bug this surfaced. `prepare-index.js` runs as `postbuild`, i.e. AFTER astro copies public/ into dist/, so it only ever updated public/ — and dist/search-index.json (the one that actually ships) held the PREVIOUS build's index. Every deploy shipped a search index one post behind. It now mirrors the index into dist/ as well, tolerating a missing dist/ for a bare postbuild run. Document the deploy and the Gitea/GitHub remote split in the README. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1.4 KiB
Executable File
1.4 KiB
Executable File