forked from cloudhead/dorothy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ru
30 lines (25 loc) · 1.08 KB
/
config.ru
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
28
29
30
require 'bundler'
Bundler.require
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public'
use Rack::Rewrite do
r302 '/chef-install', '/2011/08/19/chef-server-installation/'
end
use Rack::CommonLogger
if ENV['RACK_ENV'] == 'development'
use Rack::ShowExceptions
end
toto = Toto::Server.new do
set :author, 'Mat Schaffer'
set :title, 'DevOpsCasts'
set :url, 'http://devops.mashion.net'
set :disqus, 'devopscasts'
set :ext, 'md'
set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
set :feed, 'http://feeds.feedburner.com/devopscasts'
# set :root, "index" # page to load on /
# set :date, lambda {|now| now.strftime("%d/%m/%Y") } # date format for articles
# set :markdown, :smart # use markdown + smart-mode
# set :summary, :max => 150, :delim => /~/ # length of article summary and delimiter
# set :cache, 28800 # cache duration, in seconds
end
run toto