From my PC to your phone: how the site gets published
Here is how a picture on my graphics card ends up on your phone. It is simpler than you might think, because I kept the website itself very simple.
The nightly task
A Windows scheduled task named "awwme Nightly Generation" starts at 2:00 AM Pacific. Before it makes anything it runs a preflight check: is the model file there, does the graphics card report in, can I reach the web server. If anything is missing it stops and writes a log, and nothing half-finished gets published.
Then it runs in order: 30 pictures, 2 stickers, and one publish. If picture generation fails, nothing goes out. If only the stickers fail, the finished pictures are published anyway. Every run leaves a status file and a log I can read in the morning, and two runs can never overlap.
A site with no database
awwme.com is a static site: plain files, no database, no accounts, no cookies of mine. The build script turns the pictures into about 600 small pages. Every picture is saved in two sizes, 640 and 1200 pixels wide, in WebP, a modern format that is much smaller than JPEG at the same quality. That is why the gallery loads fast on a phone.
The pages are shuffled in your browser every time you visit, so everyone sees a different order and nobody is followed around.
A safe upload
The upload is a short script with a few safety rules:
- It saves a dated copy of the live site first. If a bad batch goes out, I can roll back in a minute.
- It sends the new files to the web server over an encrypted connection.
- It fixes file ownership and permissions so the web server can read everything and nothing is writable by the public.
- It checks that the main pages answer, and it pings the search engines (using a protocol called IndexNow) so they know something changed.
The web server is a small slice of hosting I already run for my business. Nothing about the gallery needs a cloud service.
The heart counter
The only thing the server remembers is how many hearts each picture has. When you tap the heart, your phone sends one tiny message that says "add one to this picture." The server adds one to a number. It does not record who you are, and your phone remembers which pictures you hearted so the hearts stay filled. The counts live outside the site files, so a new upload never resets them.
What can go wrong, and what happens
- The PC is off at 2 AM. The task asks Windows to wake it, and catches up when it can.
- The graphics card is busy. The script declines to start rather than fight another job.
- A picture looks wrong. One command takes it off and republishes.
- A whole batch looks wrong. Roll back to the dated copy.
That is the whole machine: a recipe, a model, a filter, a nightly task and a plain website. If there is a part you want me to open up further, tell me and I will write it.