Skip to content

Commit

Permalink
move all static assets into public/
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Jan 30, 2012
1 parent e8b1d34 commit 5b99dfb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require './lib/no_www'

use NoWWW

use Rack::Static, :urls => ['/css', '/img'], :root => '.'
use Rack::Static, :urls => ['/css', '/img'], :root => 'public'

run lambda { |env|
[
Expand All @@ -11,6 +11,6 @@ run lambda { |env|
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('index.html', File::RDONLY)
File.open('public/index.html', File::RDONLY)
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 5b99dfb

Please sign in to comment.