Switch deploy to rsync --delete

Replaces cp -r with rsync -av --delete so deploys only transfer changed
files and cleanly remove pages that no longer exist in the build output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  942 passed (942)
This commit is contained in:
Clawdie AI 2026-04-13 21:13:05 +00:00
parent cafd336557
commit d642dbf603

View file

@ -8,7 +8,7 @@
"start": "astro dev --host 0.0.0.0",
"export-strapi": "node --env-file=.env scripts/export-strapi.mjs",
"build": "node --env-file=.env node_modules/.bin/astro build",
"deploy": "npm run build && cp -r dist/. /usr/local/www/clawdie/",
"deploy": "npm run build && rsync -av --delete dist/ /usr/local/www/clawdie/",
"preview": "astro preview --host 0.0.0.0",
"astro": "astro"
},