- Home
- Frameworks
- Middleman
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
How to deploy a Middleman site
Four steps from an empty server to a live site over HTTPS.
-
Connect a server
Ubuntu LTS on any provider. A $6 droplet holds a stack of Middleman sites.
-
Connect your repository
Pick the repo and branch, and enable auto-deploy on push.
-
Set your Ruby version
Add a
.ruby-versionfile so the build uses the Ruby you expect. That's the only setup step Middleman needs. -
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.
middleman build --build-dir public, so the output lands in the directory Caddy already serves from. No Caddyfile changes are needed.
middleman-blog, middleman-syntax, and your own extensions.
Simple, predictable pricing.
We charge per server, not per app. Run one application or twenty on the same box — the bill doesn't change.
$10
- 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
Deploy more than Middleman
One server, one bill, as many apps as it can hold. Run any of these alongside your Middleman app for no extra cost.
- Ruby Deploy Ruby on Rails Rails deployment without the platform tax
- Ruby Deploy Hanami Hanami hosting on infrastructure you control
- Ruby Deploy Bridgetown Bridgetown hosting with full server access
- Go Deploy Hugo Hugo hosting without the per-site pricing
- Ruby Deploy Jekyll Jekyll hosting with real server access
- JavaScript Deploy Astro Astro hosting with no vendor lock-in
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.