diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..2521038 --- /dev/null +++ b/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) + ] +} \ No newline at end of file