element-web/riot/start.sh

11 lines
256 B
Bash
Raw Normal View History

#!/bin/bash
PORT=5000
2018-07-27 16:44:01 +00:00
echo "running riot on http://localhost:$PORT ..."
BASE_DIR=$(readlink -f $(dirname $0))
2018-07-27 12:10:19 +00:00
cd $BASE_DIR/
2018-07-27 11:29:59 +00:00
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