Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created July 5, 2012 16:08
Show Gist options
  • Save adamhjk/3054566 to your computer and use it in GitHub Desktop.
Save adamhjk/3054566 to your computer and use it in GitHub Desktop.
webrick one line web server
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