This commit is contained in:
Vanessa
2018-02-11 16:05:43 +08:00
parent 235403e1c0
commit 79f67df23f
707 changed files with 11725 additions and 11721 deletions

View 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