Most teams spend a lot of time on the 15 minutes after a deploy, watching logs and checking pages. The minutes before the deploy often get less attention, and that is where a lot of avoidable trouble starts. If you cannot say what is changing, which alerts should fire, or who will be woken up, the after-deploy checks will be slower and less clear.
This is a short checklist for a solo developer or a small team of up to 10 people. It takes about five minutes. Run it before you press the button.
Why the minutes before a deploy matter as much as the 15 minutes after
When a deploy goes wrong, the first questions are always the same: what changed, which monitors should have caught it, and who was expected to act. If the answers are in someone's head, you lose time finding them under pressure. If the answers are written down before the deploy, the after-deploy work is shorter.
The checklist below covers five things and one line of writing. Each check is small. Together they tell you whether the deploy is ready to go.
Check the task: is it written down, small enough, and does it have one owner?
Start with the task itself. Is the change written down as a task, with a short description of what will change? If it lives only in a chat thread, write it into a task now. A task gives you one place to point to when someone asks what went out.
Next, check the size. A deploy that changes three things is harder to reason about than three deploys that each change one thing. If the task covers several unrelated changes, split it before you ship. You will thank yourself when something breaks and you need to know which change caused it.
Finally, give the task one owner. One named person should be responsible for the deploy and for watching what happens after it. Shared ownership usually means nobody checks the result.
Check the monitors: are the right ones running for the thing you are changing, and are they named so an alert makes sense?
Look at the monitors that cover the part of the system you are changing. If you are changing the checkout page, is there a monitor on the checkout page? If you are changing an API that the mobile app calls, is there a monitor on that endpoint? Add or adjust monitors before the deploy, not after.
Check the names too. An alert that says "Monitor 4 down" tells the person reading it nothing. Name each monitor after the thing it watches, such as "Client site: contact form" or "Shop: basket page". A clear name means the person who receives the alert knows what to look at first.
Review the failure threshold on each monitor. Each monitor has a failure threshold you set, so it alerts only after that many failed checks in a row. A low threshold catches problems quickly but can be noisy during a deploy, when a page may be briefly unavailable. A high threshold is quieter but slower. Decide the threshold for the deploy window before you start, and note it in the task.
Check the heartbeat monitors: will any cron job or backup run during the deploy window, and who will expect a late check-in?
A heartbeat monitor is for work that runs on a schedule, such as a cron job or a backup. The job checks in each time it succeeds, and you get an alert when a check-in is late. This is useful during a deploy for one reason: a deploy can stop a scheduled job from running, or cause it to fail quietly.
Before you deploy, ask two questions. First, will any cron job or backup run while the deploy is happening? Look at the schedule. If a backup is due at 02:00 and the deploy window runs from 01:45 to 02:15, you need to know that. Second, who expects the check-in? If the nightly export is owned by one person, that person should know the job may be late and why.
If a job is due during the deploy window, you have three options: move the deploy, move the job, or accept the late alert and tell the owner before it fires. Pick one before you start. Do not find out at 02:30 that the backup never ran.
Check the people: who gets the alert this week, and do they know the deploy is happening?
Alerts only help if the right person sees them. Alert emails go only to people in your organisation, so check that the people who receive alerts this week are the people who can act on them. If someone is on leave, change the recipient before the deploy.
Then tell them. A short message is enough: what is going out, when, what the risky part is, and which monitors to watch. A person who knows a deploy is happening will read an alert differently from one who was not told. They are more likely to check the right thing quickly.
If your team is small, this step is often a single message in a shared channel. That is fine. The point is that nobody is surprised.
Write one line on how you will roll back
Before you deploy, write one line that says how you will roll back if the deploy goes wrong. For example: "Revert the merge commit and redeploy the previous build." Or: "Switch the feature flag off." Or: "Restore yesterday's database backup and point the site at the old release."
The line does not need to be detailed. It needs to exist, and it needs to be written where the owner can find it. If you cannot write the line, you are not yet ready to deploy. Work out the rollback first.
Next: the first 15 minutes after the deploy
Once the deploy is live, the next job is to check that it behaved as expected. Our after-deploy checklist covers the first 15 minutes: what to look at, which alerts to expect, and when to call it done. Read it before your next release so you know what the after-deploy work involves.
If you want the tasks, monitors and alerts for a deploy in one place, AperioFlow brings them together. Start free at https://app.aperioflow.co.uk/#/signup