CLI Overview
Quick Start Guide
wheels info
wheels reload
wheels deps
wheels destroy
wheels watch
wheels generate app
wheels generate app-wizard
wheels generate controller
wheels generate model
wheels generate view
wheels generate property
wheels generate route
wheels generate resource
wheels generate api-resource
wheels generate frontend
wheels generate test
wheels generate snippets
wheels scaffold
wheels db create
wheels db drop
wheels db setup
wheels db reset
wheels db status
wheels db version
wheels db rollback
wheels db seed
wheels db dump
wheels db restore
wheels db shell
wheels db schema
wheels dbmigrate info
wheels dbmigrate latest
wheels dbmigrate up
wheels dbmigrate down
wheels dbmigrate reset
wheels dbmigrate exec
wheels dbmigrate create blank
wheels dbmigrate create table
wheels dbmigrate create column
wheels dbmigrate remove table
wheels test
wheels test run
wheels test coverage
wheels test debug
wheels config list
wheels config set
wheels config env
wheels env
wheels env setup
wheels env list
wheels env switch
wheels environment
wheels console
wheels runner
wheels server
wheels server start
wheels server stop
wheels server restart
wheels server status
wheels server log
wheels server open
wheels plugins
wheels plugins list
wheels plugins install
wheels plugins remove
wheels analyze
wheels analyze code
wheels analyze performance
wheels analyze security
wheels security
wheels security scan
wheels optimize
wheels optimize performance
wheels docs
wheels docs generate
wheels docs serve
wheels ci init
wheels docker init
wheels docker deploy
wheels deploy
wheels deploy audit
wheels deploy exec
wheels deploy hooks
wheels deploy init
wheels deploy lock
wheels deploy logs
wheels deploy proxy
wheels deploy push
wheels deploy rollback
wheels deploy secrets
wheels deploy setup
wheels deploy status
wheels deploy stop
Configuration Management
Creating Commands
Service Architecture
Migrations Guide
Testing Guide
Object Relational Mapping
Creating Records
Reading Records
Updating Records
Deleting Records
Column Statistics
Dynamic Finders
Getting Paginated Data
Associations
Nested Properties
Object Validation
Object Callbacks
Calculated Properties
Transactions
Dirty Records
Soft Delete
Automatic Time Stamps
Using Multiple Data Sources
deploy status (Coming Soon)
This command may not work as expected. A complete and stable version is coming soon.
Check deployment status across all servers.
Synopsis
wheels deploy:status [options]
Description
The wheels deploy:status
command checks the deployment status across all configured servers, including SSH connectivity, Docker status, container health, and optional database status. It provides a comprehensive view of your deployed application's health.
Options
servers=<string>
- Check specific servers (comma-separated list)--detailed
- Show detailed container information (default: false)--logs
- Show recent container logs (default: false)
Examples
Basic status check
wheels deploy:status
Check specific servers
wheels deploy:status servers=web1.example.com,web2.example.com
Detailed status with container information
wheels deploy:status --detailed
Status with recent logs
wheels deploy:status --logs
Complete status check with all details
wheels deploy:status --detailed --logs
Status Information
The command checks the following components for each server:
Connection Status
- SSH Connection: Verifies SSH connectivity to the server
- Docker Availability: Checks if Docker is installed and running
Container Status
- Container Running: Checks if the application container is running
- Container Health: Shows container status (Up/Down time)
- Image Version: Displays the current Docker image in use
Health Checks
- HTTP Health Check: Tests the configured health endpoint
- Response Code: Verifies HTTP 200 response
Database Status (if configured)
- Database Container: Checks if database container is running
- Database Health: Shows database container status
Output Examples
Basic status output
Wheels Deployment Status
==================================================
Checking 2 server(s)...
Server: web1.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✓ Container Running
Status: Up 2 hours
Image: registry.example.com/myuser/myapp:v2.1.0
✓ Health Check Passed
Server: web2.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✓ Container Running
Status: Up 2 hours
Image: registry.example.com/myuser/myapp:v2.1.0
✓ Health Check Passed
==================================================
Overall Status: ✓ All Systems Healthy
Detailed status output with --detailed
Wheels Deployment Status
==================================================
Checking 2 server(s)...
Server: web1.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✓ Container Running
Status: Up 2 hours
Image: registry.example.com/myuser/myapp:v2.1.0
✓ Health Check Passed
Container Details:
Created: 2024-01-15T14:30:00Z
State: running
RestartCount: 0
Ports: 3000->3000/tcp
Disk Usage: 45% (120GB available)
Database Status:
✓ Database Running
Status: Up 2 hours
==================================================
Overall Status: ✓ All Systems Healthy
Status Output with Logs
When using the --logs
flag:
Server: web1.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✓ Container Running
Status: Up 2 hours
Image: registry.example.com/myuser/myapp:v2.1.0
✓ Health Check Passed
Recent Logs:
----------------------------------------
[2024-01-15 14:30:00] INFO: Server started on port 3000
[2024-01-15 14:30:01] INFO: Database connection established
[2024-01-15 14:30:02] INFO: Health check endpoint ready
[2024-01-15 14:35:00] INFO: Request processed successfully
----------------------------------------
Use Cases
Pre-deployment check
# Verify all servers are healthy before deployment
wheels deploy:status
if [ $? -eq 0 ]; then
wheels deploy:push
fi
Post-deployment verification
# Check status after deployment
wheels deploy:push tag=v2.1.0
sleep 30
wheels deploy:status --detailed
Health monitoring script
#!/bin/bash
# Regular health check
while true; do
wheels deploy:status
sleep 300 # Check every 5 minutes
done
Troubleshooting specific server
# Check single problematic server
wheels deploy:status servers=web2.example.com --detailed --logs
Configuration
The status command uses configuration from config/deploy.yml
:
service: myapp
servers:
web:
- web1.example.com
- web2.example.com
ssh:
user: deploy
healthcheck:
path: /health
port: 3000
interval: 30
accessories:
db:
image: mysql:8.0
volumes:
- db_data:/var/lib/mysql
Error States
SSH Connection Failed
Server: web1.example.com
----------------------------------------
✗ SSH Connection Failed
Error: Unable to connect to server
Container Not Running
Server: web1.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✗ Container Not Running
Health Check Failed
Server: web1.example.com
----------------------------------------
✓ SSH Connection OK
✓ Docker Running
✓ Container Running
Status: Up 5 minutes
Image: registry.example.com/myuser/myapp:v2.1.0
✗ Health Check Failed
HTTP Status: 503
Best Practices
- Regular monitoring: Run status checks after deployments
- Configure health endpoints: Ensure
/health
endpoint is properly implemented - Monitor all servers: Don't assume all servers are in the same state
- Check before deployment: Verify environment health before deploying
- Use detailed mode: Use
--detailed
for troubleshooting - Review logs: Use
--logs
when investigating issues - Automate checks: Include status checks in deployment scripts
Troubleshooting
SSH Connection Issues
- Verify SSH key is configured correctly
- Check network connectivity to servers
- Ensure user has proper permissions
Container Not Found
- Verify deployment was successful
- Check if container name matches service name
- Ensure Docker is running on the server
Health Check Failures
- Verify health endpoint path is correct
- Check if application is fully started
- Review application logs for errors
- Ensure port is accessible
Database Issues
- Verify database container is running
- Check database connection settings
- Review database logs
See Also
- wheels deploy:push - Deploy application
- wheels deploy:rollback - Rollback deployment
- wheels deploy:logs - View deployment logs
- Synopsis
- Options
- Examples
- Basic status check
- Check specific servers
- Detailed status with container information
- Status with recent logs
- Complete status check with all details
- Status Information
- Connection Status
- Container Status
- Health Checks
- Database Status (if configured)
- Output Examples
- Basic status output
- Detailed status output with --detailed
- Status Output with Logs
- Use Cases
- Pre-deployment check
- Post-deployment verification
- Health monitoring script
- Troubleshooting specific server
- Configuration
- Error States
- SSH Connection Failed
- Container Not Running
- Health Check Failed
- Best Practices
- Troubleshooting
- SSH Connection Issues
- Container Not Found
- Health Check Failures
- Database Issues
- See Also