wheels deploy
Base command for deployment operations in Wheels applications.
Synopsis
Description
The wheels deploy
command provides a comprehensive deployment system for Wheels applications. It manages the entire deployment lifecycle including initialization, execution, monitoring, and rollback capabilities.
Subcommands
audit
Audit deployment configuration and security
exec
Execute a deployment
hooks
Manage deployment hooks
init
Initialize deployment configuration
lock
Lock deployment state
logs
View deployment logs
proxy
Configure deployment proxy
push
Push deployment to target
rollback
Rollback to previous deployment
secrets
Manage deployment secrets
setup
Setup deployment environment
status
Check deployment status
stop
Stop active deployment
Options
--help
Show help information
--version
Show version information
Examples
View deployment help
Initialize deployment
Execute deployment
Check deployment status
Deployment Workflow
Initialize: Set up deployment configuration
Setup: Prepare deployment environment
Configure: Set secrets and proxy settings
Deploy: Push and execute deployment
Monitor: Check status and logs
Rollback (if needed):
Configuration
Deployment configuration is stored in .wheels-deploy.json
:
Deployment Strategies
Rolling Deployment
Zero-downtime deployment
Gradual rollout
Automatic rollback on failure
Blue-Green Deployment
Two identical environments
Instant switching
Easy rollback
Canary Deployment
Gradual traffic shifting
Risk mitigation
Performance monitoring
Environment Variables
WHEELS_DEPLOY_TARGET
Default deployment target
WHEELS_DEPLOY_STRATEGY
Default deployment strategy
WHEELS_DEPLOY_TIMEOUT
Deployment timeout in seconds
Use Cases
Continuous Deployment: Automated deployments from CI/CD
Manual Releases: Controlled production deployments
Multi-Environment: Deploy to staging, production, etc.
Disaster Recovery: Quick rollback capabilities
Scheduled Deployments: Deploy during maintenance windows
Best Practices
Always run
deploy audit
before production deploymentsUse
deploy lock
during critical operationsConfigure proper hooks for migrations and cache clearing
Keep deployment logs for auditing
Test deployments in staging first
Use secrets management for sensitive data
Notes
Requires SSH access for remote deployments
Git repository must be properly configured
Database backups recommended before deployment
Monitor application health after deployment
See Also
Last updated
Was this helpful?