projects
/
namibia
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
text changes to registration mail content
[namibia]
/
public
/
js
/
lib
/
syntaxhighlighter
/
tests
/
webrick.rb
1
require 'webrick'
2
include WEBrick
3
4
s = HTTPServer.new(
5
:Port => 2010,
6
:DocumentRoot => Dir::pwd
7
)
8
s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts')
9
s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles')
10
trap('INT') { s.stop }
11
s.start