discord-bot/deploy.sh

19 lines
342 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd /opt/loki-bot
echo "=== 1. git pull ==="
git pull origin main
echo "=== 2. docker compose up --build -d ==="
docker compose up --build -d
echo "=== 3. Waiting for health check ==="
sleep 15
echo "=== 4. Status ==="
docker ps --format 'table {{.Names}}\t{{.Status}}'
echo ""
echo "=== Done! ==="