From 17ed76ae77d91787504978cf11280c856ae7d9ca Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Nov 2018 03:22:49 -0400 Subject: simplify web script core python is better than non-core perl --- bin/web | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin') 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} -- cgit v1.2.3-54-g00ecf