Files
Eric WagonerandClaude Fable 5.2 9c3c361858 Add the Green Man generator and restyle its page to match the index
greenman-src/ holds the kit source; uv run build.py there rewrites
greenman/. deploy skips *-src/. The page now uses the index's ink,
bone and gold with the same serif, and no longer loads web fonts.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrX9qMoNihcWLX3xoJhabw
2026-11-10 18:29:29 -05:00

35 lines
1.1 KiB
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
# and the generator folders (<build>-src/), which never go to the server.
# --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 '*-src/' \
--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