Skip to content

Instantly share code, notes, and snippets.

@ngauthier
Created September 10, 2010 13:02
Show Gist options
  • Select an option

  • Save ngauthier/573586 to your computer and use it in GitHub Desktop.

Select an option

Save ngauthier/573586 to your computer and use it in GitHub Desktop.
alias serve="ruby -rwebrick -e\"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\""
@llimllib
Copy link

psssh it's much easier in python:

09:12 AM ~
$ python -m SimpleHTTPServer

Serving HTTP on 0.0.0.0 port 8000 ...

@bryanl
Copy link

bryanl commented Sep 10, 2010

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