Initial commit: Fat Kiss site — Hugo + Decap CMS

This commit is contained in:
2026-05-11 08:19:27 -10:00
commit aa0287eeaa
58 changed files with 3774 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
BUILD_DIR="public"
PREV_DIR="public.prev"
echo "[build] Hugo build starting..."
docker compose run --rm build
if [ ! -f "$BUILD_DIR/index.html" ]; then
echo "[build] ERROR: build failed — no index.html in $BUILD_DIR"
exit 1
fi
echo "[build] Build complete — $BUILD_DIR ready"
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
REMOTE="benjoe@172.233.145.18"
DEST="/var/www/getfatkiss.com/public_html/"
SRC_DIR="/home/benjoe/getfatkiss"
echo "[deploy] Building..."
bash scripts/build.sh
echo "[deploy] Syncing to Hub..."
rsync -az --delete public/ "${REMOTE}:${SRC_DIR}/public/"
echo "[deploy] Deploying to live webroot..."
ssh "${REMOTE}" "sudo rsync -az --delete ${SRC_DIR}/public/ ${DEST} && sudo chown -R www-data:www-data ${DEST}"
echo "[deploy] Done → https://getfatkiss.com/"