FrontPage  Index  Search  Changes  Atom  PageRank  Login

Hiki on Rack

hiki.cgi

#!/usr/bin/env ruby

begin

require 'rack'
require 'hiki/app'
require 'hiki/attachment'

Rack::Handler::CGI.run(
  Rack::URLMap.new(
    '/' => Hiki::App.new('hikiconf.rb')
))

rescue => evar

print "Content-Type: text/html\n\n"
puts '<pre>'
puts "#{evar.class}: #{evar.message}"
puts evar.backtrace
puts '</pre>'

end

URLMap以外のミドルウェアはとりあえずはずしているが。

Last modified:2010/10/09 22:15:47
Keyword(s):
References:
Referer | 127 | 16 | 8 | 3 | 2 | 1 | 1 | 1 | 1 | 1 |