Created
September 6, 2008 14:38
-
-
Save koshigoe/9152 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'config', 'common.rb') | |
require 'ssb' | |
require 'ssb/rack' | |
# mod_passenger の場合の対応 | |
unless ENV['RACK_ENV'] | |
# mod_passenger だと、env['CONTENT_LENGTH'] が文字列で入らない様子 | |
use Rack::Lint | |
# mod_passenger は static なファイルは標準でファイル読み込みになる | |
# * RackBaseURI を使って DocumentRoot と アプリケーションエンドポイントが異なる場合に上手く行かない | |
# * DocumentRoot が static なファイルのルートになる様子 | |
use Rack::Static, :urls => ['/javascripts', '/stylesheets', '/emoji', '/images'], :root => 'public_html' | |
end | |
run SSB::Application.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment