sheepflix/deploy.sh

15 lines
338 B
Bash
Raw Normal View History

2026-08-26 00:34:45 -04:00
#!/bin/bash
set -e
REMOTE="root@minifridge"
REMOTE_DIR="/mnt/user/appdata/sheepflix"
echo "syncing to $REMOTE:$REMOTE_DIR..."
rsync -avz --exclude '.git' --exclude 'testdata' --exclude 'sheepflix' \
./ "$REMOTE:$REMOTE_DIR/"
echo "rebuilding on remote..."
ssh "$REMOTE" "cd $REMOTE_DIR && docker compose up -d --build"
echo "done."