Skip to content

Instantly share code, notes, and snippets.

@rmoriz
Created February 26, 2011 14:05
Show Gist options
  • Select an option

  • Save rmoriz/845222 to your computer and use it in GitHub Desktop.

Select an option

Save rmoriz/845222 to your computer and use it in GitHub Desktop.
alias servmeup="ruby -r 'webrick' -e 'server = WEBrick::HTTPServer.new(:Port => 1234); server.mount(\"/\", WEBrick::HTTPServlet::FileHandler, \"./\");trap(\"INT\") { server.stop };server.start'"
$servmeup
[2011-02-26 15:05:43] INFO WEBrick 1.3.1
[2011-02-26 15:05:43] INFO ruby 1.8.7 (2010-08-16) [i686-darwin10.6.0]
[2011-02-26 15:05:43] INFO WEBrick::HTTPServer#start: pid=46054 port=1234
@rmoriz
Copy link
Author

rmoriz commented Feb 26, 2011

python -m SimpleHTTPServer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment