2018-07-27 13:08:14 +00:00
|
|
|
#!/bin/bash
|
2018-07-27 14:22:17 +00:00
|
|
|
PORT=5000
|
2018-07-27 11:43:12 +00:00
|
|
|
echo "running riot on http://localhost:$PORT..."
|
2018-07-27 13:04:04 +00:00
|
|
|
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
|
2018-07-27 11:43:12 +00:00
|
|
|
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
2018-07-18 15:52:51 +00:00
|
|
|
PID=$!
|
2018-07-27 11:29:59 +00:00
|
|
|
popd > /dev/null
|
2018-07-18 16:04:31 +00:00
|
|
|
echo $PID > riot.pid
|