Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 16 lines (13 sloc) 0.29 kb
1a64477 @ebidel Slide/demo commit
authored
1 #!/bin/bash
2 #
3 # Starts a basic web server on the port specified.
4 #
5 # ./serve.sh 3000 -> http://localhost:3000
6 #
7 # Copyright 2012 Eric Bidelman <ebidel@gmail.com>
8
9 port=$1
10 if [ $# -ne 1 ]
11 then
12 port=8000
13 fi
14
15 open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
Something went wrong with that request. Please try again.