Created
July 13, 2017 10:37
-
-
Save b-g/9a2c40e0769e580434757db151f5907d to your computer and use it in GitHub Desktop.
start local webserver in folder and open browser
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 | |
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