|
#!/bin/sh
|
|
SELFDIR=`dirname $0`
|
|
ROOT=`realpath $SELFDIR/..`
|
|
CFGFILE=$ROOT/config.json
|
|
|
|
if ! test -f "$CFGFILE"; then
|
|
echo Config file $CFGFILE not found
|
|
exit 1
|
|
fi
|
|
|
|
HOST=`jq -r .web.host $CFGFILE`
|
|
PORT=`jq -r .web.port $CFGFILE`
|
|
php -S $HOST:$PORT $ROOT/server.php |