2018-07-27 13:43:12 +02:00
|
|
|
PORT=8080
|
|
|
|
echo "running riot on http://localhost:$PORT..."
|
2018-07-18 18:04:31 +02:00
|
|
|
BASE_DIR=$(realpath $(dirname $0))
|
2018-07-27 13:29:59 +02:00
|
|
|
pushd $BASE_DIR > /dev/null
|
|
|
|
pushd riot-web/webapp/ > /dev/null
|
2018-07-27 13:43:12 +02:00
|
|
|
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
2018-07-18 17:52:51 +02:00
|
|
|
PID=$!
|
2018-07-27 13:29:59 +02:00
|
|
|
popd > /dev/null
|
2018-07-18 18:04:31 +02:00
|
|
|
echo $PID > riot.pid
|
2018-07-27 13:29:59 +02:00
|
|
|
popd > /dev/null
|