new skin for posart
This commit is contained in:
11
posart/js/syntaxhighlighter/tests/webrick.rb
Normal file
11
posart/js/syntaxhighlighter/tests/webrick.rb
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user