Skip to content

Commit

Permalink
Update Rack static server deployment strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Mar 25, 2011
1 parent 61542a5 commit 6b481e4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gems

This file was deleted.

4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source :rubygems

gem "rack"
gem "rack-rewrite"
12 changes: 12 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,12 @@
GEM
remote: http://rubygems.org/
specs:
rack (1.2.2)
rack-rewrite (1.0.2)

PLATFORMS
ruby

DEPENDENCIES
rack
rack-rewrite
8 changes: 4 additions & 4 deletions config.ru
@@ -1,9 +1,9 @@
require "rubygems" require 'rubygems'
require 'rack/contrib' require 'rack/rewrite'
require 'rack-rewrite'


use Rack::Static, :urls => ['/images'], :root => "public"
use Rack::Rewrite do use Rack::Rewrite do
rewrite '/', '/index.html' rewrite '/', '/index.html'
end end
use Rack::Static, :urls => ['/'], :root => "public"

run Rack::Directory.new('public') run Rack::Directory.new('public')

0 comments on commit 6b481e4

Please sign in to comment.