You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
only allow one riot server instance simultaneously
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
#!/bin/bash
|
||||
PORT=5000
|
||||
echo "running riot on http://localhost:$PORT ..."
|
||||
BASE_DIR=$(readlink -f $(dirname $0))
|
||||
PIDFILE=riot.pid
|
||||
CONFIG_BACKUP=config.e2etests_backup.json
|
||||
|
||||
cd $BASE_DIR/
|
||||
|
||||
if [ -f $PIDFILE ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "running riot on http://localhost:$PORT ..."
|
||||
pushd riot-web/webapp/ > /dev/null
|
||||
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
||||
PID=$!
|
||||
popd > /dev/null
|
||||
echo $PID > riot.pid
|
||||
echo $PID > $PIDFILE
|
||||
|
||||
Reference in New Issue
Block a user