#!/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` #TODO FIXME !!!! killall php cd $ROOT php $ROOT/loader.php --init php -S $HOST:$PORT $ROOT/server.php