Self-host Writestead on Cloudflare in five minutes
One button, one Cloudflare account, and your own blog with every feature unlocked.
Here's the whole process, start to finish.
Before you start
- A Cloudflare account. The free plan works for a personal blog.
- R2 enabled once in the Cloudflare dashboard (Storage, then R2). Cloudflare may ask for a payment method even for the free tier.
1. Click the button
Open the repository and click Deploy to Cloudflare. Cloudflare copies the code into your GitHub account and creates the Worker, the D1 database, the R2 bucket, the KV namespace and the queue.
2. Fill in the secrets
The deploy screen asks for a few values. Only one matters on day one:
OWNER_EMAIL: your email. Only this address can claim the blog.
Email sending (EMAIL_FROM) and bot protection (Turnstile) can wait.
3. Open /admin
Visit your Worker's URL plus /admin and create your account. The database sets itself up on the first request.
4. Add your domain
In the Cloudflare dashboard, open the Worker, then Settings, Domains and Routes, and add a custom domain. Cloudflare handles DNS and SSL.
Prefer the command line?
bashgit clone https://github.com/onmyway133/writestead
cd writestead && npm install
npx wrangler login
npm run deploy
That's it. Write something.

Comments