Consolidated deployment scripts with modular design for maintainability and ease of use.
Single unified deployment script - Use this for all deployments!
Usage:
# Interactive mode (recommended)
./scripts/deploy
# Direct mode
./scripts/deploy <type> <env> [services] [cluster] [options]Examples:
# Interactive
./scripts/deploy
# Local development
./scripts/deploy local dev
# Local Kubernetes
./scripts/deploy local dev all minikube
# Cloud production with GitOps
./scripts/deploy cloud production all --gitopsShared utilities and functions:
- Logging (info, success, warning, error)
- Error handling
- Progress indicators
- Environment file loading
- Service parsing
Docker Compose deployment functions:
- Deploy with Docker Compose
- Health checks
- Service management
- Access URLs
Kubernetes deployment functions:
- Local K8s deployment
- Cloud K8s deployment
- ArgoCD GitOps deployment
- kubectl operations
Interactive menu functions:
- Menu display
- User input handling
- Configuration wizard
Health verification for deployed services
Rollback deployments to previous version
Database backup management
Environment variable validation
Specialized local Kubernetes deployment (called by main deploy script)
| Task | Command |
|---|---|
| Interactive deployment | ./scripts/deploy |
| Local dev (fastest) | ./scripts/deploy local dev |
| Local K8s testing | ./scripts/deploy local dev all minikube |
| Cloud staging | ./scripts/deploy cloud staging |
| Cloud production | ./scripts/deploy cloud production all --gitops |
| Specific services | ./scripts/deploy local dev backend,database |
| Dry run | ./scripts/deploy cloud production all --dry-run |
| Help | ./scripts/deploy --help |
Before:
- 6 different deployment scripts
- ~900 lines of code
- Confusing for users
- Hard to maintain
After:
- 1 main entry point
- ~400 lines of code (55% reduction)
- Clear and simple
- Modular and maintainable
Status: ✅ Consolidated
Last Updated: December 28, 2025