Skip to content

Commit d455d50

Browse files
committed
Merge branch 'indrakaw-patch-1'
2 parents 323a4fa + 56017ef commit d455d50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/server.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99

1010
cd `dirname $0`/..
1111

12-
php -S 127.0.0.1:8000 -t public/ -f bin/router.php
12+
ADDR_PORT=${1:-127.0.0.1:8000}
13+
DOC_ROOT=${2:-public}
14+
15+
php -S "$ADDR_PORT" -t "$DOC_ROOT/" -f bin/router.php

0 commit comments

Comments
 (0)