Skip to content

Instantly share code, notes, and snippets.

@b-g
Created July 13, 2017 10:37
Show Gist options
  • Save b-g/9a2c40e0769e580434757db151f5907d to your computer and use it in GitHub Desktop.
Save b-g/9a2c40e0769e580434757db151f5907d to your computer and use it in GitHub Desktop.
start local webserver in folder and open browser
#!/bin/bash
BASEDIR="$( dirname "$0" )"
cd "$BASEDIR"
echo "This is where we are :"
pwd
echo "Starting webserver"
open "http://localhost:8000" && python -m SimpleHTTPServer 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment