Permalink
Browse files

Herokuizification.

  • Loading branch information...
1 parent b311de4 commit 7d382def6cdf57bcfb74f3ff4429591634d26669 @nelstrom committed Dec 23, 2010
Showing with 12 additions and 0 deletions.
  1. +3 −0 .gems
  2. +9 −0 config.ru
View
3 .gems
@@ -0,0 +1,3 @@
+rack-contrib
+rack-rewrite
+
View
@@ -0,0 +1,9 @@
+require "rubygems"
+require 'rack/contrib'
+require 'rack-rewrite'
+
+use Rack::Static, :urls => ['/images'], :root => "public"
+use Rack::Rewrite do
+ rewrite '/', '/index.html'
+end
+run Rack::Directory.new('public')

0 comments on commit 7d382de

Please sign in to comment.