Created
July 30, 2012 20:53
-
-
Save yesezra/3210094 to your computer and use it in GitHub Desktop.
Bash alias to start a web server in the current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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