Created
April 29, 2019 00:30
-
-
Save eggplants/329fd708fd606b86937baaed84556cc6 to your computer and use it in GitHub Desktop.
build local server
This file contains hidden or 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" | |
Thread.start{ | |
WEBrick::HTTPServer.new(DocumentRoot:".", | |
port:7777,BindAddress:"127.0.0.1").start | |
} | |
gets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment