-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig.ru
More file actions
27 lines (23 loc) · 818 Bytes
/
config.ru
File metadata and controls
27 lines (23 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Encoding.default_external = Encoding::UTF_8
require 'coderay'
require 'rack/codehighlighter'
require 'i18n'
require 'i18n/backend/fallbacks'
use Rack::ShowExceptions
use Rack::ShowStatus
use Rack::Static, :urls => ["/css", "/img"], :root => "public"
use Rack::Codehighlighter, :coderay, :element => "pre.code", :pattern => /\A\s*:::(\w+)\s*\n/
use Rack::Codehighlighter, :coderay,
:element => "pre>code",
:markdown => true,
:pattern => /\A[:@]{3}\s?(\w+)\s*(\n|
)/i
# require 'thin/logging'
# Thin::Logging.debug = true
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'config', 'locales', '*.yml').to_s]
I18n.backend.load_translations
require './app'
run Rack::Cascade.new([
Deck::RackApp.public_file_server,
InstallFest
])