Sha256: 6780f304c2e255c8c3a903c20f65c45ddc34d1fa833f1791bd917dd7bb679a26
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# coding: utf-8 $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) require 'rubygems' require 'uzuuzu' require __DIR__('app') app = UzuUzu.app app = Rack::Lint.new(app) app = Rack::CommonLogger.new(app, UzuUzu.logger) app = Rack::ShowExceptions.new(app) app = Rack::ShowStatus.new(app) app = Rack::ConditionalGet.new(app) app = Rack::ETag.new(app) app = Rack::Head.new(app) app = Rack::Reloader.new(app) Rack::Handler::WEBrick.run app, :Port => 9292 do |server| [:INT, :TERM].each do |signal| trap(signal) do if server.respond_to?(:stop!) server.stop! elsif server.respond_to?(:stop) server.stop end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uzuuzu-0.0.6 | template/start.rb |