Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3faf0e0c7d
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (10 sloc) 0.276 kb
1 2 3 4 5 6 7 8 9 10 11
require 'webrick'
include WEBrick

s = HTTPServer.new(
  :Port => 2010,
  :DocumentRoot => Dir::pwd
)
s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts')
s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles')
trap('INT') { s.stop }
s.start
Something went wrong with that request. Please try again.