Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Rack::Static,
- use Rack::Static, :urls => [/./],
- :root => 'public'
- run lambda { |env|
- [
- 200,
- {
- 'Content-Type' => 'text/html',
- 'Cache-Control' => 'public, max-age=86400'
- },
- File.open('public/index.html', File::RDONLY)
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement