Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #160 from machu/handle_static_files

Rack環境においてpublicディレクトリの静的コンテンツを返したい
  • Loading branch information...
commit 33442968412b525fe91bcfd9b90457bda05a745f 2 parents c4f37d3 + f0e5c2b
MATSUOKA Kohei machu authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 config.ru
9 config.ru
View
@@ -14,11 +14,10 @@ map "#{base_dir}/assets" do
end
map "#{base_dir}/" do
- run TDiary::Application.new(:index)
-end
-
-map "#{base_dir}/index.rb" do
- run TDiary::Application.new(:index)
+ run Rack::Cascade.new([
+ Rack::File.new("./public/"),
+ TDiary::Application.new(:index)
+ ])
end
map "#{base_dir}/update.rb" do
Please sign in to comment.
Something went wrong with that request. Please try again.