Created
February 8, 2012 07:14
-
-
Save ejholmes/1766379 to your computer and use it in GitHub Desktop.
Command for serving a local directory via HTTP
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
alias served="ruby -r webrick -e \"s = WEBrick::HTTPServer.new(:Port => 9090, :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