Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.27 KB | None | 0 0
  1. use Rack::Static,
  2.   use Rack::Static, :urls => [/./],
  3.   :root => 'public'
  4.  
  5. run lambda { |env|
  6.   [
  7.     200,
  8.     {
  9.       'Content-Type'  => 'text/html',
  10.       'Cache-Control' => 'public, max-age=86400'
  11.     },
  12.     File.open('public/index.html', File::RDONLY)
  13.   ]
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement