Skip to content

Instantly share code, notes, and snippets.

@swinton
Created July 8, 2014 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swinton/ecfd08e1964b1b1b95c7 to your computer and use it in GitHub Desktop.
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.
#!/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