Files
builds/deploy
T
Eric WagonerandClaude Fable 5.2 a7c04e5cb7 Credibility pass: drop dead deploy plumbing, reconcile docs
Remove the unused USER variable and the placeholder guard on a constant
DIR from deploy. Move the index's two inline styles into the stylesheet,
delete a selector that matched nothing, and use a plain apostrophe in
the description. Bring the README and CLAUDE.md file lists and
"Adding a build" steps in line with what the pages carry.

Credibility pass over the whole repo; the next one can scope from here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 18:14:20 -05:00

33 lines
990 B
Bash
Executable File

#!/bin/sh
# Deploy the builds site to YunoHost (My Webapp, static).
# ./deploy push the site
# ./deploy -n dry run: show what would change, change nothing
HOST=social
DIR=/var/www/my_webapp__3/www
DRY=""
[ "$1" = "-n" ] && DRY="--dry-run" && echo "Dry run: nothing will be changed."
cd "$(dirname "$0")" || exit 1
# Everything in this folder is the site, apart from the project's own files.
# --delete removes files on the server that no longer exist here.
rsync -avz --no-t --no-p --delete $DRY \
--exclude '.git/' \
--exclude '.gitignore' \
--exclude '.claude/' \
--exclude '.DS_Store' \
--exclude 'deploy' \
--exclude 'README.md' \
--exclude 'CLAUDE.md' \
--exclude '*.swp' --exclude '*.swo' --exclude '*~' \
./ ${HOST}:${DIR}/
STATUS=$?
# Make everything readable by the web server, whatever the local permissions were.
if [ $STATUS -eq 0 ] && [ -z "$DRY" ]; then
ssh ${HOST} "chmod -R a+rX ${DIR}" || STATUS=$?
fi
exit $STATUS