middleman-heroku
is an example on how to use Middleman and Heroku together. Following the installation you should have Middleman precompiling when pushed to Heroku, then served statically via Puma.
The only expectation is that middleman build
will generate your site into ./build
which is where Rack::TryStatic will look.
$ git clone http://github.com/middleman/middleman-heroku.git --depth=1 mysite && cd mysite
$ heroku create && git push heroku master
$ heroku open
/
will try to serve yourbuild/index.html
file./foo
will try to servebuild/foo
orbuild/foo.html
in that order.- if a file can't be found it will serve
build/404/index.html
.
The official community forum is available at: http://forum.middlemanapp.com
Github Issues are used for managing bug reports and feature requests. If you run into issues, please search the issues and submit new problems: https://github.com/middleman/middleman-heroku/issues
The best way to get quick responses to your issues and swift fixes to your bugs is to submit detailed bug reports, include test cases and respond to developer questions in a timely manner. Even better, if you know Ruby, you can submit Pull Requests containing Cucumber Features which describe how your feature should work or exploit the bug you are submitting.
Copyright (c) 2012-2014 André Arko. MIT Licensed, see LICENSE for details.