Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (9 sloc) 249 Bytes
#!/usr/bin/env ruby
require "webrick"
server = WEBrick::HTTPServer.new BindAddress: "localhost",
Port: 8080,
DocumentRoot: Dir.pwd
trap "INT" do
server.shutdown
end
server.start