Skip to content

Instantly share code, notes, and snippets.

@mykolaharmash
Forked from ejholmes/served.sh
Created June 24, 2013 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykolaharmash/5848957 to your computer and use it in GitHub Desktop.
Save mykolaharmash/5848957 to your computer and use it in GitHub Desktop.
alias served="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