Serve static files using Sinatra on Heroku with some clever URL rewriting
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
public
spec
README.md
Rakefile
app.rb
config.ru

README.md

hyde

Every Jekyll needs it's Hyde

I wrote this little bundle of files to serve static assets using Sinatra so I could have make use of the free hosting provided by Heroku.

URL rewriting

Any folder will have index.html appended before being sent.

Any file with an extension will be sent directly.

I've overwritten Sinatra's not_found to render a view but eventually this will redirect elsewhere.