summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-01 03:22:49 -0400
committerJesse Luehrs <doy@tozt.net>2018-11-01 03:22:49 -0400
commit17ed76ae77d91787504978cf11280c856ae7d9ca (patch)
tree3e28a511237a09f92db1cbf27a6551c8f6d37c27 /bin
parent77ca53e6e62677485e78df84abf9ba6a6b24146e (diff)
downloadconf-17ed76ae77d91787504978cf11280c856ae7d9ca.tar.gz
conf-17ed76ae77d91787504978cf11280c856ae7d9ca.zip
simplify web script
core python is better than non-core perl
Diffstat (limited to 'bin')
-rwxr-xr-xbin/web7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/web b/bin/web
index a867a9a..760c1dd 100755
--- a/bin/web
+++ b/bin/web
@@ -1,8 +1,3 @@
#!/bin/bash
-local port=$1
-if [[ -z $port ]]; then
- plackup -MPlack::App::Directory -e'Plack::App::Directory->new'
-else
- plackup -MPlack::App::Directory -e'Plack::App::Directory->new' --port $port
-fi
+exec python -m http.server ${1:-8000}