Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Created June 27, 2013 02:15
Show Gist options
  • Select an option

  • Save sentientmonkey/5873462 to your computer and use it in GitHub Desktop.

Select an option

Save sentientmonkey/5873462 to your computer and use it in GitHub Desktop.
webrick server
require 'webrick'
server = WEBrick::HTTPServer.new :Port => 8000, :DocumentRoot => Dir.pwd
trap 'INT' do server.shutdown end
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment