Sha256: 74f4501384f3aa68b7f1b4f1833ccba459e5f9e0269890fdcca74c63609c83ce
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
# coding: utf-8 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uzuuzu-0.0.5 | template/start.rb |
uzuuzu-0.0.4 | template/start.rb |