add dark mode toggle, uberspace deploy script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
scripts/deploy.sh
Executable file
19
scripts/deploy.sh
Executable 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."
|
||||
Reference in New Issue
Block a user