Sha256: 758494e928299515f4e592a35a2a060ba0a31599199c577617e49d47f60b219c
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'uzuuzu' require __DIR__('../app') app = UzuUzu::app app = Rack::Cascade.new([Rack::Static.new(app,:urls => ['/'], :root => '../public'), app]) app = Rack::Session::Cookie.new(app, :secret => 'change_me') app = Rack::CommonLogger.new(app, UzuUzu.logger) app = Rack::ShowStatus.new(app) app = Rack::ConditionalGet.new(app) app = Rack::ETag.new(app) app = Rack::Head.new(app) Rack::Handler::FastCGI.run app 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.3 | template/public/dispatch.fcgi |
uzuuzu-0.0.2 | template/public/dispatch.fcgi |