Sha256: 2bdf69c8af5c8cc79e0cadf04e698e8adaf364644ccf44b774d5659cf563377f
Contents?: true
Size: 617 Bytes
Versions: 7
Compression:
Stored size: 617 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::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
7 entries across 7 versions & 1 rubygems