Codebase list hiki / af67a0fc-7b44-4b47-a8a1-4c271ddbb48c/main hiki.rb
af67a0fc-7b44-4b47-a8a1-4c271ddbb48c/main

Tree @af67a0fc-7b44-4b47-a8a1-4c271ddbb48c/main (Download .tar.gz)

hiki.rb @af67a0fc-7b44-4b47-a8a1-4c271ddbb48c/mainraw · history · blame

#!/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)