A plain-text README in the project folder: the deploy notes future-me needs
Every project I run has a file called README.txt sitting in the project folder. It is plain text, no formatting, no build step, and it holds the notes future-me needs to deploy the site without guessing. I started doing
Every project I run has a file called README.txt sitting in the project folder. It is plain text, no formatting, no build step, and it holds the notes future-me needs to deploy the site without guessing. I started doing this on ramrom.io after one too many evenings where I opened a project I had not touched in weeks and had to work out, from scratch, how it was supposed to go live.
The file is short. It lists the order things upload in, the files I must never touch, and the checks I run after a deploy. That is the whole point: it is a deploy checklist written by the person who built the thing, for the same person a month later, when the details have gone.
What goes in it
The first section is the upload order. On shared hosting, the order matters more than people think. Assets first, then pages, then the cache-bust last. If I upload a page that references a new script before the script is on the server, visitors hit a broken page in between. The README says the order plainly, so I never have to think about it again.
The second section is the do-not-touch list. The api/ folder, the config file with the API key, the service worker. On a small site like mine, the temptation is to tweak a live file directly in the file manager when something looks wrong. The README reminds me why that is a bad idea: a change made on the server and not in the project folder is a change that gets overwritten on the next upload, and the bug comes back as if it were never fixed.
The third section is the post-deploy checks. After every upload I check the live site the way a visitor arrives: the homepage loads, the tool actually resolves a real link, and the browser cache is flushed so what I see is what visitors see. The README lists the exact URLs to check and what a passing result looks like. That sounds obvious until you remember the evening I fixed a page, confirmed it by opening the file manager, and only found out days later that the CDN was still serving the old version to everyone else.
Why plain text
I use .txt on purpose. A Markdown file is fine too, but plain text opens everywhere: the file manager, a phone, a terminal, any editor. There is no rendering step, no dependency, and no chance the file itself breaks. It is also the one file in the project that is allowed to be boring. No screenshots, no badges, no clever formatting. Just lines of text that tell me what to do.
The other reason is that it forces honesty. A README that says "upload everything and it works" is a lie I would tell myself. Mine says which files go up in which order, which ones are risky, and what to check afterwards. When a deploy step changes, I change the README in the same commit, or in my case the same zip, so the notes and the code never drift apart.
What it is not
It is not documentation for anyone else. There is no architecture diagram and no setup guide for a new developer, because there is no new developer. It is a note to future-me, and that is exactly why it works: I write it in the language I actually think in, including the mistakes I have already made once and do not want to make twice.
The file also holds the small facts that never fit anywhere else. Which PHP version the host is pinned to. Which query string bump tells visitors' browsers to fetch the new JavaScript. That the extracted folders come back with the wrong permissions and need fixing before anything works. Each one is a line that saves ten minutes of rediscovery.
If you run a small site on your own, write the README before you need it. Open a text file, write down the upload order, the files you must not touch, and the three checks you run after every deploy. Then keep it updated. The day you come back to the project after a month away, you will be glad past-you bothered.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.