From 6b2a71b21f8e307e9682ec4fe76c2bfee87f2d51 Mon Sep 17 00:00:00 2001 From: James Stewart Date: Fri, 3 Feb 2012 10:35:53 +0000 Subject: [PATCH] Rack setup --- config.ru | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config.ru 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