You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.1 KiB

# #!/bin/bash
# # Define the compose file to use (since you currently only have one)
# COMPOSE_FILE="docker-compose.yml"
# if [ "$1" == "--dev" ]; then
# echo "========================================"
# echo "🧪 STARTING DEVELOPMENT MODE"
# echo "========================================"
# # Run Docker Compose for local development
# DOCKER_BUILDKIT=1 docker compose -f $COMPOSE_FILE up -d --build
# else
# echo "========================================"
# echo "🚀 DEPLOYING TO PRODUCTION"
# echo "========================================"
# # 1. Ensure we are on the master branch
# echo "--> 🌿 Checking out master branch..."
# git checkout master
# # 2. Pull the latest changes from master
# echo "--> 📥 Pulling latest changes..."
# git pull origin master
# # 3. Run Docker Compose for production
# # --remove-orphans cleans up old containers if you changed service names
# echo "--> 🐳 Building and starting containers..."
# DOCKER_BUILDKIT=1 docker compose -f $COMPOSE_FILE up -d --build --remove-orphans
# echo "✅ Deployment Complete!"
# fi