summaryrefslogtreecommitdiffstats
path: root/bin/web
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-01-16 07:32:44 -0500
committerJesse Luehrs <doy@tozt.net>2017-01-21 06:37:31 -0500
commitdc6416f8d45f02b5ba9e38a4236c1821a4cf596e (patch)
tree3594beb07b645598574622c9a6fe4a2b5351185d /bin/web
parent37136d5493410cf2f5b72184f952794f33be566e (diff)
downloadconf-dc6416f8d45f02b5ba9e38a4236c1821a4cf596e.tar.gz
conf-dc6416f8d45f02b5ba9e38a4236c1821a4cf596e.zip
split most functions out into scripts
Diffstat (limited to 'bin/web')
-rwxr-xr-xbin/web8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/web b/bin/web
new file mode 100755
index 0000000..a867a9a
--- /dev/null
+++ b/bin/web
@@ -0,0 +1,8 @@
+#!/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