Skip to content

Instantly share code, notes, and snippets.

@geekq
Created July 31, 2012 09:57
Show Gist options
  • Save geekq/3215678 to your computer and use it in GitHub Desktop.
Save geekq/3215678 to your computer and use it in GitHub Desktop.
Start simple web server in the current folder
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 3001, :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