Skip to content

Instantly share code, notes, and snippets.

@yesezra
Created July 30, 2012 20:53
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 yesezra/3210094 to your computer and use it in GitHub Desktop.
Save yesezra/3210094 to your computer and use it in GitHub Desktop.
Bash alias to start a web server in the current directory
alias servhere="ruby -rwebrick -e'server=WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd);trap(\"INT\"){server.shutdown};server.start'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment