From 62f1a519a817614625a7d6349cfa4c5bf4e39998 Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 1 Jun 2026 20:55:12 +0000 Subject: [PATCH] Add publish-web.sh for fast frontend-only deploys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds + rsyncs the static site without the API container rebuild/Caddy reload that publish.sh does — for quick UI/CSS/copy iteration. Use publish.sh when backend changes. Co-Authored-By: Claude Opus 4.8 (1M context) --- deploy/publish-web.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 deploy/publish-web.sh diff --git a/deploy/publish-web.sh b/deploy/publish-web.sh new file mode 100755 index 0000000..b3b5509 --- /dev/null +++ b/deploy/publish-web.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Frontend-only publish: build the SvelteKit static site and sync it to the live +# Caddy site root. Use this for UI/CSS/copy tweaks — it skips the API container +# rebuild and Caddy reload that publish.sh does (those only matter for backend +# changes). For backend/API changes, use publish.sh instead. +set -euo pipefail + +repo="$(cd "$(dirname "$0")/.." && pwd)" +site="/home/jay/srv/sites/upbeatbytes" + +echo "→ building frontend" +( cd "$repo/frontend" && npm run build ) + +echo "→ syncing static site to $site" +rsync -a --delete "$repo/frontend/build/" "$site/" + +echo "✓ Published frontend → https://upbeatbytes.com"