summaryrefslogtreecommitdiff
path: root/maintenance/dev/start.sh
blob: dd7363a8f2216f18a36d4e6a7f0303fa0c559bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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"