Files
teahub/gitea/sync-custom.sh
T
teahubxyzandClaude Opus 5.5 9551a8658a Teahub's look back on prod, and Tea MCP 2.2 for the dashboard's Domains tab
gitea/custom: the old factory's home page and dashboard, ported to Gitea 28.
The signed-out home is Teahub = Git + Tea + Time beside the cup; the
dashboard keeps the feed and puts Domains | Repository | Organization above
the contribution heatmap. Green tea colours for Gitea's light, dark and auto
themes, and the 🍵 mark. gitea/sync-custom.sh puts it on green-tea's volume;
gitea/fly.toml names the site Teahub and sets the meta tags.

mcp 2.2: GET /domains, the old factory's Cloudflare Registrar search (a live
check of the exact names, suggestions, prices). Only GITEA_URL may read it
from a browser; 8 searches a minute per client and 20 in all; answers kept
ten minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CYHXFvWMCs1GUmRmpySqQ6
2026-10-14 20:47:34 -07:00

8 lines
566 B
Bash
Executable File

#!/bin/sh
# Copy gitea/custom/templates and gitea/custom/public onto green-tea's volume (/data/gitea, Gitea's custom directory),
# replacing the copies there, then restart Gitea so it reads the templates. With --no-restart the next deploy does it.
set -eu
cd "$(dirname "$0")/custom"
COPYFILE_DISABLE=1 tar czf - templates public | fly ssh console -a green-tea -C "sh -c 'set -e; cd /data/gitea; rm -rf templates public; tar xzf -; chown -R git:git templates public; find templates public -type f | sort'"
[ "${1:-}" = "--no-restart" ] || fly apps restart green-tea