From add331408b0f207b82f3ec1b76251c700197e807 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 16 Jun 2014 19:30:53 +0200 Subject: Import slides --- slides/final/serve.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 slides/final/serve.sh (limited to 'slides/final/serve.sh') diff --git a/slides/final/serve.sh b/slides/final/serve.sh new file mode 100755 index 0000000..f2692fe --- /dev/null +++ b/slides/final/serve.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Starts a basic web server on the port specified. +# +# ./serve.sh 3000 -> http://localhost:3000 +# +# Copyright 2012 Eric Bidelman + +port=$1 +if [ $# -ne 1 ] +then + port=8000 +fi + +if [ $(uname -s) == "Darwin" ] +then + open=open +else + open=xdg-open +fi + +$open http://localhost:$port/template.html && python -m SimpleHTTPServer $port; -- cgit v1.2.3