Lab 06: Deploy, Operate, Rollback
Run software outside the editor and operate it like a real service.
- Add environment-based configuration.
- Add a
/healthendpoint. - Containerize the app or write a local deployment script.
- Start the app from a clean terminal.
- Hit
/health. - Create a ticket through the deployed app.
- Capture logs.
- Break configuration intentionally.
- Observe the failure.
- Roll back to the working state.
For the starter project, use:
PORT=8090 SUPPORT_DESK_DB=/tmp/support-desk.sqlite3 python3 app.pycurl -i http://localhost:8090/healthQuestions
Section titled “Questions”- What artifact is deployed?
- What configuration is required?
- What secrets would be needed in production?
- What health check proves the app can receive traffic?
- What log line proves a ticket was created?
- What is the rollback path?
Artifact
Section titled “Artifact”Create operate-runbook.md:
# Runbook
## Start
## Stop
## Config
## Health Check
## Logs
## Common Failures
## RollbackDone When
Section titled “Done When”Someone else can follow your runbook and operate the app.