- Create each of these files in a single folder
bundle install
middleman
You need to restart middleman after each change in dynamic_app.rb
The alternative for development is to put everything in config.rb
but that's not really pretty.
middleman build
foreman start
After that, don't forget to rm -fr ./tmp
Nothing special, plain old ruby deployment: git push heroku master
The deployment process will do a rake assets:precompile
step that will build the middleman site.
The config.ru
serves static files first if they're found, so any file that was built statically will be served, otherwise, it'll fall back to your Sinatra app. Ain't that pretty?