Command Line Tools
Deployment Commands
Deployment Commands
Section titled “Deployment Commands”Wheels provides comprehensive deployment automation tools to streamline the process of deploying your applications to various environments including staging, production, and cloud platforms.
Available Commands
Section titled “Available Commands”Core Deployment Commands
Section titled “Core Deployment Commands”wheels deploy setup- Initialize deployment configurationwheels deploy push- Deploy application to target environmentwheels deploy rollback- Rollback to previous deploymentwheels deploy status- Check deployment status
Environment Management
Section titled “Environment Management”wheels deploy init- Initialize new deployment environmentwheels deploy audit- Audit deployment security and configurationwheels deploy logs- View deployment and application logs
Advanced Operations
Section titled “Advanced Operations”wheels deploy lock- Lock/unlock deploymentswheels deploy hooks- Manage deployment hookswheels deploy secrets- Manage deployment secretswheels deploy stop- Stop running deployment
Quick Start
Section titled “Quick Start”Initial Deployment Setup
Section titled “Initial Deployment Setup”# Initialize deployment for your projectwheels deploy setup --environment=production
# Push initial deploymentwheels deploy push --environment=production --tag=v1.0.0
# Check deployment statuswheels deploy status --environment=productionDeployment Architecture
Section titled “Deployment Architecture”Supported Platforms
Section titled “Supported Platforms”- Traditional Servers - Deploy to Linux/Windows servers
- Cloud Platforms - AWS, Azure, Google Cloud
- Container Platforms - Docker, Kubernetes
- CFML Engines - Adobe ColdFusion, Lucee, CommandBox
Deployment Strategies
Section titled “Deployment Strategies”- Blue-Green Deployment - Zero-downtime deployments
- Rolling Updates - Gradual deployment across instances
- Canary Releases - Gradual traffic shifting to new version
- Atomic Deployments - All-or-nothing deployment approach
Configuration
Section titled “Configuration”Deployment Configuration File
Section titled “Deployment Configuration File”Create /config/deploy.cfm for deployment settings:
<cfscript>// Deployment configurationdeployment = { // Environment definitions environments = { staging = { host = "staging.myapp.com", port = 22, user = "deploy", path = "/var/www/staging", database = { host = "db-staging.myapp.com", name = "myapp_staging" } }, production = { host = "app.myapp.com", port = 22, user = "deploy", path = "/var/www/production", database = { host = "db-prod.myapp.com", name = "myapp_production" } } },
// Deployment options options = { backupBeforeDeploy = true, runMigrations = true, clearCache = true, restartServices = true },
// Build configuration build = { excludes = [ "/tests", "/docs", "/.git", "/temp" ], includes = [ "/app", "/config", "/public", "/vendor/wheels" ] }};</cfscript>Deployment Workflow
Section titled “Deployment Workflow”Standard Deployment Process
Section titled “Standard Deployment Process”-
Pre-deployment Checks
- Verify application tests pass
- Check database migration status
- Validate configuration files
- Security and compliance checks
-
Build Process
- Compile assets
- Run code optimization
- Create deployment package
- Generate version metadata
-
Deployment Execution
- Upload deployment package
- Create backup of current version
- Deploy new version
- Run database migrations
- Update configuration
-
Post-deployment Tasks
- Verify deployment success
- Run smoke tests
- Clear caches
- Restart services
- Monitor application health
Example Deployment
Section titled “Example Deployment”# Full deployment workflowwheels deploy setup --environment=productionwheels test run --allwheels deploy push --environment=production --tag=v2.1.0wheels deploy status --environment=production --waitEnvironment Management
Section titled “Environment Management”Multiple Environments
Section titled “Multiple Environments”# Setup multiple environmentswheels deploy init --environment=developmentwheels deploy init --environment=stagingwheels deploy init --environment=production
# Deploy to specific environmentwheels deploy push --environment=stagingEnvironment-Specific Configuration
Section titled “Environment-Specific Configuration”<cfscript>set( dataSourceName = "myapp_production", mailServer = "smtp.production.com", cacheSettings = { enabled = true, timeouts = 3600 });</cfscript>Security and Compliance
Section titled “Security and Compliance”Secure Deployments
Section titled “Secure Deployments”- Encrypted Connections - All deployment communications encrypted
- Access Control - Role-based deployment permissions
- Audit Logging - Complete deployment activity logs
- Secret Management - Secure handling of credentials and API keys
Compliance Features
Section titled “Compliance Features”- Deployment Approval - Required approvals for production deployments
- Change Tracking - Full audit trail of all changes
- Rollback Capability - Quick rollback to previous versions
- Environment Segregation - Isolated deployment environments
Monitoring and Logging
Section titled “Monitoring and Logging”Deployment Monitoring
Section titled “Deployment Monitoring”# Monitor deployment progresswheels deploy status --environment=production --follow
# View deployment logswheels deploy logs --environment=production --lines=100
# Health check after deploymentwheels deploy audit --environment=productionIntegration with Monitoring Tools
Section titled “Integration with Monitoring Tools”- Application Performance Monitoring - New Relic, DataDog integration
- Error Tracking - Sentry, Rollbar integration
- Infrastructure Monitoring - Prometheus, Grafana integration
- Log Aggregation - ELK Stack, Splunk integration
Advanced Features
Section titled “Advanced Features”Blue-Green Deployments
Section titled “Blue-Green Deployments”# Deploy to green environmentwheels deploy push --environment=production --slot=green
# Verify green deploymentwheels deploy audit --environment=production --slot=green
# Switch traffic to greenwheels deploy switch --environment=production --from=blue --to=greenCanary Releases
Section titled “Canary Releases”# Deploy canary version to 10% of trafficwheels deploy push --environment=production --canary=10 --tag=v2.1.0
# Increase canary traffic graduallywheels deploy canary --environment=production --increase=25
# Promote canary to full deploymentwheels deploy promote --environment=productionDatabase Migrations
Section titled “Database Migrations”# Deploy with database migrationswheels deploy push --environment=production --migrate
# Rollback with database rollbackwheels deploy rollback --environment=production --migrate-rollbackCI/CD Integration
Section titled “CI/CD Integration”GitHub Actions
Section titled “GitHub Actions”name: Deploy to Productionon: push: tags: ['v*']
jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Deploy to Production run: | wheels deploy push --environment=production --tag=${{ github.ref_name }} wheels deploy status --environment=production --waitJenkins Pipeline
Section titled “Jenkins Pipeline”pipeline { agent any
stages { stage('Test') { steps { sh 'wheels test run --all' } }
stage('Deploy Staging') { steps { sh 'wheels deploy push --environment=staging' sh 'wheels deploy audit --environment=staging' } }
stage('Deploy Production') { when { tag 'v*' } steps { sh 'wheels deploy push --environment=production --tag=${TAG_NAME}' sh 'wheels deploy status --environment=production --wait' } } }}Best Practices
Section titled “Best Practices”Deployment Safety
Section titled “Deployment Safety”- Always Test First - Deploy to staging before production
- Backup Before Deploy - Create backups before any deployment
- Monitor After Deploy - Watch application metrics post-deployment
- Rollback Plan - Have tested rollback procedures ready
- Gradual Rollouts - Use canary or blue-green deployments for safety
Automation Principles
Section titled “Automation Principles”- Repeatable Process - Same deployment process across environments
- Version Everything - Track versions of code, config, and dependencies
- Fail Fast - Stop deployment immediately on any failures
- Observable Deployments - Full visibility into deployment process
- Recovery Procedures - Automated rollback and disaster recovery
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”- Connection Failures - Check network connectivity and credentials
- Permission Errors - Verify deployment user has required permissions
- Migration Failures - Review database migration logs and rollback
- Service Startup Issues - Check application logs and configuration
- Asset Problems - Verify static asset deployment and CDN updates
Debugging Commands
Section titled “Debugging Commands”# Verbose deployment outputwheels deploy push --environment=production --verbose
# Check deployment prerequisiteswheels deploy audit --environment=production --pre-check
# View detailed logswheels deploy logs --environment=production --verbose --lines=500