Created
March 8, 2014 20:00
-
-
Save quipu/9438037 to your computer and use it in GitHub Desktop.
Simple shell wrapper for pythons SimpleHTTP module
This file contains hidden or 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 bash | |
if [ $1 ] ; then | |
echo "-- Starting web server on port $1 --" | |
python -m SimpleHTTPServer $1 | |
else | |
echo "-- Starting web server on port 8000 --" | |
python -m SimpleHTTPServer | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment