summaryrefslogtreecommitdiff
path: root/scripts/sh/local-srv
blob: 5eaefa7910bd461978c7d2b745f2bffd1ee0a087 (plain) (blame)
1
2
3
4
5
6
#!/bin/sh
# Spin up a server at the passed in directory. 

[ -z "$2" ] && port=1102 || port="$2"

python3 -m http.server "$port" -d $1