Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Deploy Scripts.

Features

  • Blue-Green Deploy: Zero-downtime deployment by switching between two identical environments
  • Canary Deploy: Gradually shift traffic from old to new version with health validation
  • Rolling Update: Sequentially update instances with configurable batch size
  • Rollback Manager: Track deployment history and instantly revert to any previous version
  • All strategies simulated with realistic timing and status output
  • JSON deployment manifest for declarative configuration
  • Dry-run mode to preview what would happen
  • Deployment history logging to JSON file
  • Python stdlib only — zero dependencies

Quick Start

bash
# Run a blue-green deployment
python src/deploy_scripts.py --config examples/deploy_config.json --strategy blue-green

# Run a canary deployment (gradually shift traffic)
python src/deploy_scripts.py --config examples/deploy_config.json --strategy canary

# Rolling update with batch size of 2
python src/deploy_scripts.py --config examples/deploy_config.json --strategy rolling --batch-size 2

# Dry run — preview without executing
python src/deploy_scripts.py --config examples/deploy_config.json --strategy blue-green --dry-run

# Rollback to previous version
python src/deploy_scripts.py --config examples/deploy_config.json --rollback

# View deployment history
python src/deploy_scripts.py --config examples/deploy_config.json --history
Chapter 2

Configuration Reference

Follow this guide to get Deploy Scripts up and running in your environment.

Configuration Reference

FieldTypeRequiredDescription
app_namestringYesApplication name
versionstringYesVersion being deployed (e.g., v2.1.0)
environmentstringNoTarget environment (default: staging)
instancesarrayNoList of target hosts/instances
health_check_urlstringNoURL to check after deployment
health_check_timeoutintNoSeconds to wait for health check (default: 30)
canary_stepsarrayNoTraffic percentages for canary (e.g., [10, 25, 50, 100])
rollback_on_failureboolNoAuto-rollback on health check failure (default: true)

CLI Reference

FlagDescription
--config, -cPath to the JSON deploy config (required)
--strategy, -sDeploy strategy: blue-green, canary, rolling
--batch-sizeInstances per batch for rolling updates (default: 1)
--dry-runPreview deployment without executing
--rollbackRollback to previous version
--historyShow deployment history
--verbose, -vEnable verbose logging
Chapter 3
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Deploy Scripts and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Deploy Scripts v1.0.0 — Free Preview