Merge "dao: Correct return type doc for getLoadBalancer()"
[lhc/web/wiklou.git] / maintenance / dev / start.sh
index 9736c8b..dd7363a 100755 (executable)
@@ -1,12 +1,14 @@
 #!/bin/bash
 
-if [[ "x$BASH_SOURCE" == "x" ]]; then echo '$BASH_SOURCE not set'; exit 1; fi
+if [ "x$BASH_SOURCE" == "x" ]; then echo '$BASH_SOURCE not set'; exit 1; fi
 DEV=$(cd -P "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
 
+. "$DEV/includes/require-php.sh"
+
 PORT=4881
 
 echo "Starting up MediaWiki at http://localhost:$PORT/"
 echo ""
 
-cd $DEV/../../; # $IP
-$DEV/php/bin/php -S localhost:$PORT
+cd "$DEV/../../"; # $IP
+"$PHP" -S "localhost:$PORT" "$DEV/includes/router.php"