element-web/riot/start.sh

10 lines
270 B
Bash
Raw Normal View History

PORT=8080
echo "running riot on http://localhost:$PORT..."
BASE_DIR=$(realpath $(dirname $0))
2018-07-27 11:29:59 +00:00
pushd $BASE_DIR > /dev/null
pushd riot-web/webapp/ > /dev/null
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
PID=$!
2018-07-27 11:29:59 +00:00
popd > /dev/null
echo $PID > riot.pid
2018-07-27 11:29:59 +00:00
popd > /dev/null