dbt_ingram_id / scripts /deploy-prod.sh
LeonceNsh's picture
Upload folder using huggingface_hub
e9c1d5a verified
Raw
History Blame Contribute Delete
722 Bytes
#!/bin/bash
# scripts/deploy-prod.sh
set -e
echo "=== Deploying to Production Environment ==="
# Ensure we're using production configuration
export COMPOSE_FILE=docker-compose.prod.yml
# Pull latest images
docker-compose pull
# Stop existing services
docker-compose down
# Run production pipeline
echo "Running production data pipeline..."
docker-compose up pipeline-orchestrator
# Start API and supporting services
echo "Starting production services..."
docker-compose up -d api-service nginx
# Health checks
echo "Performing health checks..."
sleep 30
curl -f http://localhost/health || echo "Production health check failed"
echo "Production deployment completed!"
echo "API available at: http://localhost/api/"