Deployment
Deployment Checklist
A reusable pre-flight and post-flight list for app deploys on Linux hosts — built for operators who need consistency under pressure.
Before you touch production
- Target host and environment confirmed (no staging/prod mix-ups)
- Deploy path exclusive to this app
- Branch and commit SHA intended for release
- Required secrets available (not guessed)
- Backward-compatible migrations planned if schema changes
- Rollback owner and plan named
Host preflight
- Disk headroom for images/logs (
df -h) - Memory headroom for build + runtime (
free -h) - Docker available or PM2/runtime path explicit
- Outbound network for registry/Git
- Time sync sane (
date -u)
Source & build
- Clone or pull succeeded with auth
- Lockfiles respected (
npm ci, not ad-hoc installs without reason) - Build artifacts present
- Image tags immutable (prefer SHA tags)
Runtime & config
-
.envor secret injection complete - Ports not conflicting (
ss -lntp) - Health endpoint defined
- Restart policy set
Verification (non-negotiable)
- Process/container healthy
- Local HTTP health check passes
- Public/route check passes if customer-facing
- Logs free of boot-loop errors for N minutes
- Deploy recorded with commit + operator context
Aftercare
- Auto-deploy profile updated only if paths/commands changed intentionally
- Monitoring quiet for new error classes
- Document partial failures honestly for the next engineer
Tip
Print this as a runbook appendix. Checklists beat tribal knowledge during incidents.
One-page command capture
df -h && free -h
docker version || pm2 -v
git -C "$APP_DIR" rev-parse --short HEAD
curl -fsS "http://127.0.0.1:$PORT/health"Closing
Checklists are how reliable teams scale process without scaling chaos.
Infrastructure & product
The Kairo engineering team builds the AI infrastructure engineer that automates deployment, operations, and production reliability.
Related articles
Building Reliable Deployments
Make “deployed” mean verified running software: stages, evidence gates, and how to stop success hallucination in automation.
By Platform Team
Deploy Node.js to Production in Minutes
A practical path from repository to a reachable Node.js service: runtime choice, env wiring, process or container, and verification.
By Platform Team
Docker Deployment Best Practices
Production container habits that prevent snowflake hosts: images, Compose, healthchecks, logs, and what “installed” actually means.
By Platform Team
Next step
Continue with KAIRO
KAIRO is the AI infrastructure engineer for verified deploys, self-healing, and operator-grade chat on your fleet.
