Snippet · Shipping & running it
What to do when it's down
Decided in advance, because you won't think clearly then.
My app: <describe>. Host: <host>. Users: <who they are>. Write me a one-page incident plan: - The first three things to check, in order, when something's wrong. - How to tell "it's my code" from "it's the host" from "it's a third party". - The rollback command, exactly. - What to tell users, where, and how quickly. - What to capture before I start fixing, so I can work out the cause afterwards. Keep it short enough to follow at 3am. Then tell me what I should set up now so this is easier later.
Capture the logs before restarting. Restarting often fixes it and destroys the only evidence of what happened.