aboutsummaryrefslogblamecommitdiff
blob: 0b3c93c6da62ab5794e34ec679548cbde6ec98c7 (plain) (tree)
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
Powered by cgit v1.2.3 (git 2.41.0)