Moving five sites onto a platform I built: what broke
On this page 10 sections
For a few years, everything I run lived on one small Hetzner server in Helsinki, and every site ran a different way. This blog was static files behind nginx. My studio's site was a Node app under PM2. My template shop was another static site with a few cron jobs next to it. Two small demo apps ran in Docker, and some older things ran as systemd services.
This autumn I built Keepyard, a self-hosted platform for small internal apps: one install on a Linux server, every app in a sandbox, private by default, with backups, logs and metrics. Its tests passed on my laptop. The honest test was to move my own sites onto it, on the same small server, and see what broke. On 1 and 2 December 2026 I did that. This is the list.
Before anything moved#
The server had 2 GB of memory, which was not enough for both the old setup and the new one, so I resized it in place to 4 GB (CPU and memory only, the disk stayed the same).
The first thing that broke was not Keepyard. After the resize reboot, the studio site returned 502. PM2 had never been told to start on boot, so it simply didn't. pm2 startup and pm2 save fixed it, but it was a good reminder of how much of the old setup only worked because nothing had changed.
I also didn't move everything. Three old services I no longer used were removed instead. One of them, I found while taking stock, answered on the server's raw IP address, bypassing Cloudflare entirely. Moving house is a good time to find out what's in the attic.
The approach#
Keepyard runs next to nginx rather than replacing it: nginx keeps ports 80 and 443 and Cloudflare stays in front. Each site moves by pointing its nginx config at Keepyard, and the old process keeps running for a few days as the way back.
For this blog I built the site with a Dockerfile that runs the same build and checks as before and serves the result with the same nginx config. Before switching, I fetched every main page from the live site and from the Keepyard copy and compared them. They were identical except for one redirect, which turned out to be newer in the repository than on the server.
The upgrade that couldn't apply its own files#
On a small server Keepyard runs in a "Lite" mode that switches off optional parts until something needs them: certificates, the database operator, backup storage. Switching them off means scaling them to zero.
The first upgrade on the real server failed halfway. Scaling cert-manager to zero stops its pods, but its admission webhook stays registered, so Kubernetes tried to call a webhook with nothing behind it and refused the update. The installer now wakes those parts before it applies anything. I wouldn't have found this on my laptop, where nothing is ever switched off.
The build that waited forever#
A build job asked Kubernetes for 1 GB of memory. On a 4 GB server, after the operating system, Kubernetes itself and the running apps, about 2.1 GB was left for pods and 1.4 GB of it was already promised to apps. So the build never started. The console said "Waiting for a sandboxed builder to start…" and nothing else, until the build timed out after 30 minutes.
Two fixes: on small servers a build now asks for much less up front (it can still use more while it runs), and when it can't be scheduled the console says "Waiting for memory on the server" instead of nothing. The second fix is the more important one. A thing that waits silently looks exactly like a thing that's broken.
The site that was too big to upload#
My template shop is 546 MB in git, 420 MB of it video. Deploys were one upload request, and Cloudflare's free plan caps a request at 100 MB. Keepyard's own limit was 250 MB anyway.
So the CLI learned to send large folders in parts: a compressed archive in 32 MB pieces, each retried on its own, up to 1 GB in total. The site went up in parts through Cloudflare and was live about two minutes later. Unrelated, but found in the same hour: archives made on a Mac quietly include ._* files for every file with extended attributes. Keepyard now skips them.
The disk that filled before cleanup started#
Each deploy of that 546 MB site added about 2.5 GB of image layers on the server. Kubernetes cleans up old images when the disk reaches 85%. It also starts evicting pods when free image space drops below 15%, which is the same moment. So the disk hit the eviction limit before cleanup had a chance to start, and a running build was evicted.
The installer now starts image cleanup at 75% and cleans down to 60%, well before eviction. Cleaning up by hand that afternoon also deleted the small "pause" image that every pod needs. It downloaded again by itself, but the installer now pins it so cleanup can't remove it.
Pages that were in nobody's image#
The template shop generates some pages on the server: tool pages that are released on a schedule, feeds, a sitemap. They are not in git, so they were not in the image. For about half an hour after the switch those pages were missing. They now live on a volume that the site and its scheduled job share, and nginx falls back to the volume for anything the image doesn't have.
Moving the cron jobs had its own surprise: the social poster refreshed its access tokens by rewriting its own .env file. On a platform where configuration is fixed at deploy time, that doesn't work. Its state moved onto the same volume.
Caching that outlived the deploy#
This one happened on Keepyard's own website, which went live on the same server the same week. Cloudflare caches CSS and JavaScript for a very long time once you tell it to. After one deploy the HTML was new and the stylesheet was old, and the page looked broken. Every CSS and JavaScript file now gets a ?v= hash of its contents. Then the same thing happened with the demo video, which Cloudflare kept for a day. Images and video get the hash too now.
The reboot after updates#
After the move I applied 108 pending package updates and rebooted, which I had been putting off. The server was back in about 40 seconds. Every pod came back by itself, and so did the firewall rules and the SSH settings. The studio site timed out once on the first request after boot, then answered normally every time. Compared with the PM2 reboot the day before, that felt like progress.
What I'd tell myself before starting#
- Move one thing, check everything. After every step I checked every public site through Cloudflare. That is now a script I run after any change to the server.
- Keep the old way running for a few days. Every switch was a small nginx change, with a backup of the config from before it.
- The real server finds what the laptop can't. Small memory, a full disk, a CDN in front, a reboot. Most of the fixes above came out of two days on a 4 GB machine and ended up in the next release.
Everything now runs on Keepyard: the five sites, their scheduled job, and Keepyard's own website. I wrote about what fits on a 4 GB server and what doesn't separately. If you want to try it yourself, it's at keepyard.dev; it's free for one workspace.