fist pass
This commit is contained in:
20
start.sh
Executable file
20
start.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user