How I Deployed Business in a Box to 5 Clients in One Day With a Single Bash Script
BiaB 5-client one-day deployment — how the bash deploy script works
The deploy script walkthrough. Here's what that actually involved.
The Setup
Idempotency
What I Built
The deploy script
The deploy script walkthrough. This is where most implementations go wrong — not in the concept, but in the specifics that documentation tends to gloss over. The version that's actually running in production looks different from what the README describes.
Idempotency
Idempotency. This is where most implementations go wrong — not in the concept, but in the specifics that documentation tends to gloss over. The version that's actually running in production looks different from what the README describes.
Dns gotcha
Dns gotcha. This is where most implementations go wrong — not in the concept, but in the specifics that documentation tends to gloss over. The version that's actually running in production looks different from what the README describes.
What Broke First
Client variable injection. This is the part that took the most time to figure out — not the implementation itself, but the failure mode you only encounter at the wrong moment. The fix is in the tooling, not the concept.
What's Running in Production
The stack: msp, biab, bash, deployment. Monitoring via Zabbix with a custom alert template. The rule I apply to everything in production: if it can't self-report a failure, it doesn't go in.
Key Takeaways
- The — the deploy script walkthrough
- Idempotency — idempotency
- Dns — DNS gotcha
Questions or a different approach? Reply to The Operator's Edge newsletter — I read every response.
Live Life Automated covers the broader philosophy behind how I think about automation and building systems that don't require constant babysitting. Available at mfitz.net.