Middleman hosting on your own infrastructure

Deploy Middleman sites to servers you own

Middleman's asset pipeline and templating produce a fast static site. Hatchbox builds it on your server and serves it with Caddy over HTTPS.

Includes a 7 day free trial. $10 per server per month after that — unlimited apps.

Middleman gives you Rails-style templating, helpers, and an asset pipeline for a site that compiles down to plain files. Hatchbox installs your Ruby, bundles your gems, runs the build, and hands the output to Caddy. No CDN vendor, no per-seat pricing, no build minutes.

There's nothing to configure. Hatchbox detects the middleman gem in your Gemfile.lock, installs the Ruby from your .ruby-version, and builds the site straight into the directory Caddy serves from.

Why deploy Middleman with Hatchbox

Full Ruby build environment

Your extensions, helpers, and custom Rake tasks all run on the server exactly as they do locally.

Served straight from disk

Caddy compresses and serves the built files with no application process in the request path.

Custom domains and free SSL

Add as many domains as you like. Caddy issues and renews Let's Encrypt certificates automatically.

One bill for many sites

Client work adds up fast on per-site platforms. On Hatchbox a server full of Middleman sites is still $10/month.

What customers say

I run 15+ Rails apps and static sites with Hatchbox. My bill went from $400/month on Heroku to $28/mo with Hatchbox & DigitalOcean combined.

Donn Felker

Software Professional

If you want the most bang for your buck, Hatchbox / Hetzner / DigitalOcean is the killer combo. You can throw sooo much at this and it's crazy how inexpensive it is.

Josh Pigford

Serial Entrepreneur

Applications deployed
24,000+
Deployments run
2 million+
Deploying since
2016

Read more customer stories

How to deploy a Middleman site

Four steps from an empty server to a live site over HTTPS.

  1. Connect a server

    Ubuntu LTS on any provider. A $6 droplet holds a stack of Middleman sites.

  2. Connect your repository

    Pick the repo and branch, and enable auto-deploy on push.

  3. Set your Ruby version

    Add a .ruby-version file so the build uses the Ruby you expect. That's the only setup step Middleman needs.

  4. Deploy

    Hatchbox bundles, builds, and promotes the release over HTTPS.

What Hatchbox does for you

Detection is the middleman gem in your Gemfile.lock. There's no build script to write.

Build step it runs

middleman build --build-dir public

The output goes straight to public, which Caddy serves directly with compression and automatic SSL — no application process in the request path.

Ruby version

Add a .ruby-version file to your repository to control which Ruby the build uses.

3.4.2

Middleman deployment questions

Still stuck? Ask us directly — a real person who has deployed a lot of Middleman apps will answer.

Simple, predictable pricing.

We charge per server, not per app. Run one application or twenty on the same box — the bill doesn't change.

Start free trial

$10

/server/mo
  • Unlimited applications
  • Deploy anywhere
  • Zero downtime deployments
  • Custom domains & free SSL
  • Databases, cron jobs & background workers
  • Full SSH access to your servers
  • Real, human support
  • 7 day free trial

One server, one bill, as many apps as it can hold. Run any of these alongside your Middleman app for no extra cost.

See every framework we deploy

Ready to deploy your Middleman app?

Hatchbox has run more than 2 million deploys across 24,000+ applications since 2016. Start a 7 day free trial and put yours on a server you own.