add dark mode toggle, uberspace deploy script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 11:32:16 +01:00
parent 651dd4a255
commit e398d53315
5 changed files with 110 additions and 29 deletions

19
scripts/deploy.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
# Description: Build and deploy TherapyFinder to Uberspace static hosting
# Usage: ./scripts/deploy.sh <ssh-host>
# Example: ./scripts/deploy.sh felixfoertsch@andromeda.uberspace.de
HOST="${1:?Usage: ./scripts/deploy.sh <ssh-host>}"
USER="$(ssh "$HOST" whoami)"
REMOTE_DIR="/var/www/virtual/${USER}/html/tpf"
echo "Building..."
bun run build
echo "Deploying to ${HOST}:${REMOTE_DIR}..."
ssh "$HOST" "mkdir -p ${REMOTE_DIR}"
rsync -avz --delete dist/ "${HOST}:${REMOTE_DIR}/"
echo "Done."