Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fork of Heroku's Ruby Buildpack for Cedar with added support for compiling Jekyll sites.
branch: master

This branch is 135 commits behind indirect:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
support/s3
vendor
CHANGELOG.md
LICENSE
README.md
Rakefile

README.md

Heroku buildpack: Middleman

This is a Heroku buildpack for Middleman apps. It uses Bundler for dependency management.

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

Hacking

To use this buildpack, fork it on Github. Push up changes to your fork, then create a test app with --buildpack <your-github-url> and push to it.

Flow

Here's the basic flow of how the buildpack works:

Ruby (Gemfile and Gemfile.lock is detected)

  • runs Bundler
  • installs binaries
    • installs node if the gem execjs is detected
  • runs rake assets:precompile if the rake task is detected

Rack (config.ru is detected)

  • everything from Ruby
  • sets RACK_ENV=production

Middleman

  • runs middleman build to build the static version of your site
  • serves your static site via Rack::Static
Something went wrong with that request. Please try again.