Created
July 4, 2012 13:09
-
-
Save roelven/3047256 to your computer and use it in GitHub Desktop.
Config for a static site on Heroku
This file contains 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", "/img", "/favicon.ico"], | |
:root => "public" | |
run lambda { |env| | |
[ | |
200, | |
{ | |
'Content-Type' => 'text/html', | |
'Cache-Control' => 'public, max-age=86400' | |
}, | |
File.open('public/index.html', File::RDONLY) | |
] | |
} |
This file contains 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
# Gemfile | |
source "http://rubygems.org" | |
gem "rack" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Y U NO gh-pages?