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:
parent
cafd336557
commit
d642dbf603
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue