Created
July 27, 2012 03:56
-
-
Save gautamk/3186111 to your computer and use it in GitHub Desktop.
Start webrick server to serve files in the local directory
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
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment