Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Rack setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jystewart committed Feb 3, 2012
1 parent 1e15eac commit 6b2a71b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config.ru
@@ -0,0 +1,14 @@
use Rack::Static,
:urls => ["/css", "/img", "/js"],
:root => "public"

run lambda { |env|
[
200,
{
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('public/index.html', File::RDONLY)
]
}

0 comments on commit 6b2a71b

Please sign in to comment.