Files
barkwho/start.sh

21 lines
671 B
Bash
Raw Permalink Normal View History

2026-01-31 22:18:40 +00:00
#!/bin/bash
# Start BarkWho on CT 118 - rebuilds containers to pick up .env and code changes
REMOTE="root@192.168.2.118"
PROJECT="/opt/barkwho"
echo "Syncing local code to container..."
rsync -avz --exclude node_modules --exclude .git --exclude .claude \
--exclude '*.png' --exclude '*.Identifier' --exclude README.md \
/home/jramos/barkwho/ "$REMOTE:$PROJECT/"
echo "Building and starting containers..."
ssh "$REMOTE" "cd $PROJECT && docker compose up --build -d"
echo "Waiting for services..."
sleep 3
ssh "$REMOTE" "docker compose -f $PROJECT/docker-compose.yml ps"
echo ""
echo "Frontend: http://192.168.2.118:5173"
echo "Backend: http://192.168.2.118:3001"