bl791/IFDB / games /competition2013 /web /autumn /test_server.rb
bl791's picture
download
raw
403 Bytes
#!/usr/bin/env ruby
require 'webrick'
include WEBrick
def start_webrick(config={})
config.update(:Port => 8000)
puts "Server starting. Visit http://localhost:8000/ in your browser."
server = HTTPServer.new(config)
yield server if block_given?
['INT', 'TERM'].each { |signal|
trap(signal){ server.shutdown}
}
server.start
end
start_webrick(:DocumentRoot => '.')

Xet Storage Details

Size:
403 Bytes
·
Xet hash:
db2f777ac372078b2bb95033138aa2b27cc78e291997d01ebd52d3a6b8e03d99

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.