Created
September 10, 2010 13:02
-
-
Save ngauthier/573586 to your computer and use it in GitHub Desktop.
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
| alias serve="ruby -rwebrick -e\"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\"" |
I came here to write the same comment Bill did. Python definitely got it right there.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
psssh it's much easier in python:
09:12 AM ~
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...