add script to install, start and stop riot

This commit is contained in:
Bruno Windels
2018-07-18 17:52:51 +02:00
parent dcf4be79b7
commit 2cb83334ed
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
riot-web
+8
View File
@@ -0,0 +1,8 @@
RIOT_BRANCH=master
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
unzip riot.zip
rm riot.zip
mv riot-web-${RIOT_BRANCH} riot-web
pushd riot-web
npm install
npm run build
+5
View File
@@ -0,0 +1,5 @@
pushd riot-web/webapp/
python -m SimpleHTTPServer 8080 &
PID=$!
popd
echo $PID > riot.pid
+3
View File
@@ -0,0 +1,3 @@
PIDFILE=riot.pid
kill $(cat $PIDFILE)
rm $PIDFILE