Skip to content

Example of how to create a simple directory listing app on Heroku

Notifications You must be signed in to change notification settings

rmanalan/heroku-directory-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use Heroku to host static files

Here's a sample app that utilizes Rack's Directory module to serve up a directory listings of your app. Basically, all you need to know is that:

run Rack::Directory.new('.')

...will serve up the contents of your app as a directory listing. The sample here adds a few more embelishments such as a modified template and support for etags for browser caching.

You can see a sample of this app here.

About

Example of how to create a simple directory listing app on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages