Skip to content

Instantly share code, notes, and snippets.

@kawasako
Created August 24, 2013 21:38
Show Gist options
  • Save kawasako/6330550 to your computer and use it in GitHub Desktop.
Save kawasako/6330550 to your computer and use it in GitHub Desktop.
webrick simple server
require 'webrick'
include WEBrick
s = HTTPServer.new(
:Port => 8000,
:DocumentRoot => '.'
)
trap("INT"){ s.shutdown }
s.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment