wiki.techinc.nl/maintenance/dev/start.sh
Daniel Friesen 21b3fde565 Make maintenance/dev/'s .sh files executable.
Change-Id: I46a2611cccf9bd7af20be5fcc497c0dacc13cbb7
2012-10-14 08:50:37 -07:00

14 lines
333 B
Bash
Executable file

#!/bin/bash
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
"$PHP" -S "localhost:$PORT" "$DEV/includes/router.php"