21 lines
671 B
Bash
21 lines
671 B
Bash
|
|
#!/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"
|