summaryrefslogtreecommitdiff
path: root/scripts/sh/local-srv
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sh/local-srv')
-rwxr-xr-xscripts/sh/local-srv6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/sh/local-srv b/scripts/sh/local-srv
new file mode 100755
index 0000000..5eaefa7
--- /dev/null
+++ b/scripts/sh/local-srv
@@ -0,0 +1,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