5 lines
156 B
Bash
5 lines
156 B
Bash
#!/usr/bin/env sh
|
|
set -eu
|
|
PORT="${1:-8000}"
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
exec php -S "127.0.0.1:${PORT}" -t "$ROOT" "$ROOT/router.php"
|