wiki.techinc.nl/maintenance/dev/start.sh
Daniel Friesen 856310a705 Follow up r102210:
- Update maintenance/dev/ to install php inside ~/.mediawiki/php instead of ~/.mwphp
- Tweak README a bit
- Move the router.php into an includes along with two helper .sh files to cut out some of the repetition
2011-12-11 19:45:15 +00: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"