Created
July 12, 2011 20:08
-
-
Save johndbritton/1078857 to your computer and use it in GitHub Desktop.
Example rackup file for serving static content with Heroku.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Rack::Static, :urls => ["/css", "/images"], :root => "public" | |
run lambda { |env| [200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html', File::RDONLY)] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment