diff --git a/deploy.sh b/deploy.sh index e159caf..af60b56 100755 --- a/deploy.sh +++ b/deploy.sh @@ -146,6 +146,13 @@ stop_services() { restart_services() { log "Restarting Cosmo services..." cd "$PROJECT_ROOT" + + # Copy environment file to ensure latest config is used + if [ -f "$PROJECT_ROOT/.env.production" ]; then + cp "$PROJECT_ROOT/.env.production" "$PROJECT_ROOT/.env" + log "✓ Environment configuration updated" + fi + docker-compose restart log "✓ Services restarted" show_status @@ -228,6 +235,12 @@ update_system() { cd "$PROJECT_ROOT" git pull + # Copy environment file to ensure latest config is used + if [ -f "$PROJECT_ROOT/.env.production" ]; then + cp "$PROJECT_ROOT/.env.production" "$PROJECT_ROOT/.env" + log "✓ Environment configuration updated" + fi + # Rebuild images docker-compose build