Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Precompile your static Middleman site when you push to Heroku
Ruby
tree: cbc3005ae5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
source
Gemfile
Gemfile.lock
README.md
config.rb
config.ru

README.md

Middleman on Heroku

precompiled and served statically

Usage

$ git clone http://github.com/indirect/middleman-heroku-app.git mysite
$ cd mysite
$ heroku create --stack cedar --buildpack http://github.com/indirect/heroku-buildpack-middleman.git
$ git push heroku master

The only expectation is that middleman build will generate your site into ./build. That's where Rack::TryStatic will look.

If you want to serve a pretty 404 page, create a file named 404.html at the root of your site, and it will be served automatically any time Rack::TryStatic can't find a file.

Something went wrong with that request. Please try again.