Last active
August 29, 2015 14:06
-
-
Save dropofwill/230e23c7ee57f305d8a9 to your computer and use it in GitHub Desktop.
Shell Function for Serving pwd on 0.0.0.0
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
# usage default port: $ serve | |
# custom port: $ serve 4000 | |
function serve { | |
port="${1:-3000}" | |
ruby -run -e httpd . -p $port | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment