deploy: exclude /.claude/ from content sync
Local Claude Code tooling state (settings.json, settings.local.json inside ~/src/zddc-website/.claude/) was being rsync'd onto the public site at zddc.varasys.io/.claude/. Not a security issue per se but it's dev tooling leaking into the public surface. Add --exclude='/.claude/' alongside the existing /.git*, /README.md, /LICENSE excludes. Also rm -rf'd the directory from the live tree (previously synced May 9). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cd05cd6366
commit
784ed21a34
1 changed files with 4 additions and 1 deletions
5
deploy
5
deploy
|
|
@ -62,10 +62,13 @@ if [ "$WHAT" = content ] || [ "$WHAT" = all ]; then
|
|||
echo "=== Syncing content: $CONTENT_SRC/ → $LIVE/ ==="
|
||||
# --exclude=/releases/ keeps the live site's releases dir untouched
|
||||
# by content syncs. --exclude=.git so the .git dir doesn't end up
|
||||
# under /usr/share/caddy.
|
||||
# under /usr/share/caddy. --exclude=.claude keeps local Claude Code
|
||||
# tooling state (settings.json, settings.local.json, etc.) off the
|
||||
# public site.
|
||||
rsync -av --delete-after \
|
||||
--exclude='/releases/' \
|
||||
--exclude='/.git*' \
|
||||
--exclude='/.claude/' \
|
||||
--exclude='/README.md' \
|
||||
--exclude='/LICENSE' \
|
||||
"$CONTENT_SRC/" "$LIVE/"
|
||||
|
|
|
|||
Loading…
Reference in a new issue