# Host CMS Websites: Railway, Render, Fly.io, Vercel, VPS

> Hosts a website that has a CMS, a database or uploaded photos on Railway, Render, Fly.io, Vercel, DigitalOcean or a Coolify VPS, keeps the site up when the CMS is down, and moves it between hosts without losing data.

Host CMS Websites: Railway, Render, Fly.io, Vercel, VPS is a free AI agent skill on Agensi by Siyakha Digital by Thebe Ramathebane, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Siyakha Digital by Thebe Ramathebane](https://www.agensi.io/creators/thebe-ramathebane)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/host-cms-websites-railway-render-fly-io-vercel-vps
- Tags: api, devops, cms-hosting, railway, docker, payload-cms

## About this skill

Static sites are easy to host anywhere. The trouble starts when a site has **moving parts**: a CMS the owner edits, a database, uploaded photos, form messages and secrets. Then the host decides whether photos survive a redeploy, whether the site goes down with the CMS, and how hard it is ever to leave. This skill makes your agent set those sites up so the host is a choice you can change in an afternoon.

### What's inside
- **SKILL.md**: a six-step procedure. List every moving part, choose the host with a comparison table (costs checked 1 Dec 2026), make the app portable, deploy in the right order, verify with five checks, and hand over in plain words.
- **A CMS playbook**:
  - choosing between Payload, Directus, Decap/Sveltia (git-based), WordPress and hosted CMSs;
  - modelling only what the owner edits;
  - admin, editor and website roles;
  - replaceable photo slots;
  - an owner's guide table.
- **Six host playbooks**: Railway (including the 1 Dec 2026 switch from `railway.json` to `.railway/railway.ts`), Render, Fly.io, Vercel, DigitalOcean App Platform and Coolify on a VPS. Each has the setup steps and the traps: where uploads can live, free tiers that sleep or expire, regions, and private networking.
- **Templates**:
  - a Node `Dockerfile`;
  - a `render.yaml` for site, CMS and Postgres;
  - a `fly.toml` with a volume;
  - `content-source.mjs`, which lays CMS values over defaults with a cache so the site keeps serving when the CMS is down, with 5 tests.
- **smoke.mjs**: `node scripts/smoke.mjs <site> [cms]` checks the home page, health check, HTTPS redirect, a real 404 and the CMS admin. It exits 1 on failure, so it can gate a deploy.

### The rules it keeps
- The site keeps working when the CMS is down.
- Uploads live on a volume or in object storage, never in the app folder.
- Before handover, the agent uploads a test photo, redeploys and checks the photo is still there.
- Secrets are never committed or printed.
- The owner owns the hosting account and the bill.
- App and database run in the same region.
- Deploys, plan changes and DNS changes happen only on request.

### Where it comes from
It comes from a real multi-brand business site: a Node website reading Payload CMS over a private network on Railway, with Postgres, a volume for photos and a defaults file. The site moved from Directus to Payload without changing any page. The host playbooks were written for alternatives to that setup.

Free and MIT-licensed. It works with any agent that reads SKILL.md files (Claude Code, Cursor, Codex CLI, Gemini CLI and others). The scripts need Node 18+.

## Requires

- Node.js 18+
- @railway/cli
- Optional: An account on your chosen host or a Linux VPS

## Known limitations

Prices were checked on 1 Dec 2026; confirm them on each host's pricing page before quoting. Vercel and DigitalOcean App Platform have no disk, so uploads need object storage. Fly.io Managed Postgres is not offered in every region (not in Johannesburg).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Host CMS Websites: Railway, Render, Fly.io, Vercel, VPS skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it only work with Payload?

No. The CMS playbook covers Payload, Directus, git-based CMSs (Decap, Sveltia), WordPress and hosted CMSs. The content-source pattern works with any CMS that has an API.

### Does it deploy for me?

Your agent prepares everything and runs deploys when you ask. Buying plans, adding domains and changing DNS stay your decision.

### Is it only for South Africa?

No. The region advice applies anywhere; the examples mention Johannesburg because that is where the source project was.

### What do the scripts need?

Node 18 or newer. Each host playbook names that host's own CLI (Railway, Fly, doctl) where one is used.

### How do I start?

Ask your agent something like "Which host should this site move to?" or "Set up Payload on Render for this site". It lists the site's moving parts first, then recommends a host with the monthly cost and the steps.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
