-
Notifications
You must be signed in to change notification settings - Fork 0
Local Development
Griffen Fargo edited this page Apr 10, 2026
·
1 revision
strut supports local stack management for development, including environment sync and database sync from production.
strut my-stack local start [--services <profile>] # Start stack locally
strut my-stack local stop # Stop local stack
strut my-stack local reset # Reset local environment
strut my-stack local sync-env --from prod # Sync env vars from production
strut my-stack local sync-db --from prod [--anonymize] # Sync database from production
strut my-stack local logs [--follow] # Tail local logs
strut my-stack local test # Run local smoke tests# Copy env template
cp stacks/my-stack/.env.template .local.env
nano .local.env # Fill in local valuesstrut my-stack local startThis uses docker-compose.dev.yml (or docker-compose.local.yml) for local overrides like volume mounts, debug ports, and hot-reload.
# Sync environment variables (sanitized)
strut my-stack local sync-env --from prod
# Sync database
strut my-stack local sync-db --from prod
# Sync database with anonymization
strut my-stack local sync-db --from prod --anonymizestrut my-stack local start # Core services
strut my-stack local start --services full # All services
strut my-stack local start --services messaging # Core + messagingstrut my-stack local debug shell my-service
strut my-stack local debug exec my-service "npm run test"
strut my-stack local debug inspect-env my-service
strut my-stack local debug stats my-servicestrut my-stack local resetStops containers, removes volumes, and cleans up the local environment for a fresh start.
strut · v0.1.0 · Report an Issue
Getting Started
Core Concepts
Operations
- Deployment
- Blue-Green Deploy
- Deploy Rollback
- Database Backups
- Stack Groups
- Lifecycle Hooks
- Notifications
- Key Rotation
- Drift Detection
- Domain and SSL
- Monitoring
- Volume Management
Advanced
- Security Posture
- VPS Audit and Migration
- Stack Validation
- Data Anonymization
- Debugging
- Local Development
Extending
Contributing