mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
12 lines
276 B
Ruby
Executable File
12 lines
276 B
Ruby
Executable File
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
|