Created
November 4, 2022 02:28
-
-
Save hepplerj/302b28d0b677bc7740e846fb08688f1e to your computer and use it in GitHub Desktop.
A small Ruby local server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "webrick" | |
server = WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd) | |
trap("INT") { server.stop } | |
server.start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment