File: hiki.rb

package info (click to toggle)
hiki 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,812 kB
  • ctags: 2,033
  • sloc: ruby: 14,572; lisp: 926; sh: 19; makefile: 16
file content (22 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'hiki/app'
require 'rubygems'
require 'rack'

app = Rack::Builder.new{
  use Rack::Lint
  use Rack::ShowExceptions
  #use Rack::ShowStatus
  use Rack::CommonLogger
  use Rack::Static, :urls => ['/theme'], :root => '.'
  run Hiki::App.new
}.to_app
options = {
  :Port => 9292,
  :Host => '0.0.0.0',
  :AccessLog => []
}
Rack::Handler.default.run(app, options)