summaryrefslogtreecommitdiffstats
path: root/bin/web
diff options
context:
space:
mode:
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