Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tiny HTTP Server.
require 'webrick'
WEBrick::HTTPServer.new(
:DocumentRoot => '.',
:Port => 8013,
).start
@hyuki0000
Copy link
Author

hyuki0000 commented Mar 30, 2013

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