#!/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."