The situation
A content-heavy listings platform — Next.js 15 with the App Router, Payload CMS, MongoDB and an S3 media store — running on a two-core, four-gigabyte VPS. Deployments were manual, there was no staging, and a large media library was served straight from the application server. The founder wanted stability first and a technical partner second.
Step one: know what you are moving
We started with a deep code audit across security, performance, code quality and build/infra. The audit produced a prioritised written plan, with a small set of fixes flagged as “before anything else” — the kind of issues that are cheap to fix and expensive to discover later. Those went first.
Step two: migrate without a bad weekend
The target was a dedicated Hetzner server (six cores, 64 GB RAM), provisioned as code:
- Docker Compose for the application, database and supporting services.
- Ansible for the server, so the setup is reproducible rather than remembered.
- GitHub Actions CI/CD with a
main → prodflow, health checks, and a rollback that we rehearsed live before the cutover window — not just documented. - Monitoring with uptime checks and alerting from the first day.
- A written production launch checklist and a dev-flow handbook for the client’s own developers: branches, deploys, rollback, known pitfalls.
Production moved on 7 September 2026. The cutover itself had no unplanned downtime; the rollback path was never needed but was there.
Step three: the media pipeline
After the migration, the next bottleneck was clear: video processing competing with the web application, and a media library too large and too flatly structured to put behind a CDN as-is. We split video processing into a dedicated service, and are now building the CDN and image-processing queue — a new storage driver, URL rewriting for existing content, a migration script for 150,000+ files and a runbook.
What the client gets
- A platform that runs on hardware sized for its traffic, deployed by pushing to a branch.
- Documentation their own developers use, not just ours.
- A partner who audits before touching, rehearses before cutting over, and hands over runbooks after.