Files
monitor/deploy.sh
2026-01-04 16:29:36 +01:00

15 lines
361 B
Bash

#!/bin/bash
# Pull latest changes (assuming it's a git repo)
if [ -d ".git" ]; then
echo "Pulling latest changes from git..."
git pull origin main || git pull origin master
fi
# Build and restart containers
echo "Building and restarting Docker containers..."
docker-compose down
docker-compose up --build -d
echo "Deployment completed successfully."