Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hyuki0000
Created March 30, 2013 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyuki0000/5275928 to your computer and use it in GitHub Desktop.
Save hyuki0000/5275928 to your computer and use it in GitHub Desktop.
Tiny HTTP Server.
require 'webrick'
WEBrick::HTTPServer.new(
:DocumentRoot => '.',
:Port => 8013,
).start
@hyuki0000
Copy link
Author

C:> ruby httpserver.rb

(Browse http://localhost:8013/myfile.html )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment