1.4 KiB
1.4 KiB
description: Deploy application with comprehensive checks and validation
argument-hint: [environment] [service-name]
Deployment Command
Deploy the application to the specified environment with comprehensive validation.
Context
- Environment: $1 (default: production)
- Service: $2 (default: current service)
- Current branch: !
git branch --show-current - Recent commits: !
git log --oneline -5 - Build status: !
git status --porcelain
Deployment Process
-
Pre-deployment Checks
- Validate environment configuration
- Check service dependencies
- Verify security requirements
- Confirm deployment permissions
-
Build and Test
- Run automated tests
- Perform security scans
- Validate configuration
- Build deployment artifacts
-
Deployment Execution
- Deploy to target environment
- Verify service health
- Run smoke tests
- Monitor deployment metrics
-
Post-deployment Validation
- Health check validation
- Performance monitoring
- Error log analysis
- User acceptance testing
Expected Outcome
- Successful deployment to $1 environment
- All health checks passing
- Performance metrics within acceptable ranges
- Zero critical errors in logs
Rollback Plan
If deployment fails:
- Automatic rollback to previous version
- Restore database state if needed
- Notify stakeholders of issues
- Document failure reasons for analysis