Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Precompile your static Middleman site when you push to Heroku
Ruby
Tree: 4ee9ab3ec3

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README.md

Middleman on Heroku

precompiled and served statically

Usage

$ git clone http://github.com/indirect/middleman-heroku-static-app.git mysite && cd mysite
$ bundle install && bundle exec middleman init .
$ git add . && git commit -m "brand new site"
$ heroku create && git push heroku master

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

You can customize the 404 page that's served if TryStatic can't find a file by editing source/404.html.erb.

Something went wrong with that request. Please try again.