Created
July 8, 2014 16:19
-
-
Save swinton/ecfd08e1964b1b1b95c7 to your computer and use it in GitHub Desktop.
Shell script to run a simple HTTP server from the current working 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
#!/bin/bash | |
# Default port to serve on is 8800, to serve on another port, e.g. 3319: | |
# serve.sh 3319 | |
port=${1-8800} | |
python -m SimpleHTTPServer $port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment