Permalink
Browse files

make it a Rack app and set it up to be run by Foreman

  • Loading branch information...
1 parent f6927b3 commit e43780b22a2bf170d2dfd16f133b66a6df3dd3db @stevenwilkin committed Jan 24, 2012
Showing with 13 additions and 0 deletions.
  1. +1 −0 Procfile
  2. +12 −0 config.ru
View
@@ -0,0 +1 @@
+web: rackup
View
@@ -0,0 +1,12 @@
+use Rack::Static, :urls => ['/css', '/img'], :root => '.'
+
+run lambda { |env|
+ [
+ 200,
+ {
+ 'Content-Type' => 'text/html',
+ 'Cache-Control' => 'public, max-age=86400'
+ },
+ File.open('index.html', File::RDONLY)
+ ]
+}

0 comments on commit e43780b

Please sign in to comment.