mirror of https://github.com/vector-im/riot-web
only allow one riot server instance simultaneously
parent
5129bb57b6
commit
31fcf08fec
|
@ -1,10 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PORT=5000
|
PORT=5000
|
||||||
echo "running riot on http://localhost:$PORT ..."
|
|
||||||
BASE_DIR=$(readlink -f $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
|
PIDFILE=riot.pid
|
||||||
|
CONFIG_BACKUP=config.e2etests_backup.json
|
||||||
|
|
||||||
cd $BASE_DIR/
|
cd $BASE_DIR/
|
||||||
|
|
||||||
|
if [ -f $PIDFILE ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "running riot on http://localhost:$PORT ..."
|
||||||
pushd riot-web/webapp/ > /dev/null
|
pushd riot-web/webapp/ > /dev/null
|
||||||
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
||||||
PID=$!
|
PID=$!
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
echo $PID > riot.pid
|
echo $PID > $PIDFILE
|
||||||
|
|
Loading…
Reference in New Issue