Files
simcoetradesjournal/deploy.sh
T
Your Name c8b729beb6 Migrate deployment from DigitalOcean to Unraid
Remove:
- .do/app.yaml, .do/deploy.template.yaml
- .github/workflows/deploy.yml (DO App Platform pipeline)

Add:
- deploy.sh (SCP-based deploy to Unraid nginx)

New stack:
- Gitea bare repo on Unraid (/mnt/cache/docker/gitea)
- Ruby container builds Jekyll on push via post-receive hook
- Nginx serves static site on port 8100
- Caddy proxies simcoetradesjournal.krisforbes.ca + simcoetradesjournal.ca
2026-08-02 10:32:41 -04:00

20 lines
468 B
Bash

#!/bin/bash
# Deploy simcoetradesjournal to Unraid via SCP
set -e
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
REMOTE="root@192.168.0.123"
REMOTE_DIR="/mnt/better/appdata/simcoetradesjournal"
echo "🔨 Building Jekyll site..."
cd "$REPO_DIR"
bundle exec jekyll build
echo "📦 Syncing to Unraid..."
rsync -av --delete \
--exclude '.git' \
"$REPO_DIR/_site/" \
"$REMOTE:$REMOTE_DIR/"
echo "✅ Deployed. Site live at https://simcoetradesjournal.krisforbes.ca"