public
Description: An attempt at turning the blogging app that runs tomayko.com into a general purpose blogging system. No longer actively maintained.
Homepage:
Clone URL: git://github.com/rtomayko/wink.git
cypher (author)
Sun Nov 02 12:45:06 -0800 2008
commit  f8629f2810dffec26990a45101e5c1f03b5d5594
tree    a9472d1d672aaaffdc78419088343d0b048b9d81
parent  aa361b05631f19429d5fbcd2758798d5ea652295 parent  f5fe1dc46b6e3a183d1f8939b5bed51534bd1b04
wink / config.ru
100644 23 lines (17 sloc) 0.427 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rubygems'
require 'sinatra'
Sinatra::Application.default_options.merge!(
  :run => false,
  :env => ENV['RACK_ENV'],
  :raise_errors => true,
  :views => File.join(File.dirname(__FILE__), 'views')
)
 
log = File.new("wink.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
 
root_dir = File.dirname(__FILE__)
$:.unshift "#{root_dir}/lib"
$:.unshift "#{root_dir}"
 
require 'wink'
 
run Wink.new('wink.conf')
 
# vim: ft=ruby