middleman-heroku-static-app

by indirect

Precompile your static Middleman site when you push to Heroku

126 Stars 20 Forks Last release: Not found MIT License 22 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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
$ heroku open

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
.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.