Created
December 4, 2013 18:08
-
-
Save mateuszgachowski-snippets/7792484 to your computer and use it in GitHub Desktop.
Bash: Start webserver in 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
#!/usr/bin/env python | |
#Python web-server | |
function webserver() { | |
open "http://localhost:${1:-8000}" && $(which python) -m SimpleHTTPServer ${1:-8000} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment