mirror of https://github.com/vector-im/riot-web
add script to install, start and stop riot
parent
dcf4be79b7
commit
2cb83334ed
|
@ -0,0 +1 @@
|
||||||
|
riot-web
|
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
pushd riot-web/webapp/
|
||||||
|
python -m SimpleHTTPServer 8080 &
|
||||||
|
PID=$!
|
||||||
|
popd
|
||||||
|
echo $PID > riot.pid
|
|
@ -0,0 +1,3 @@
|
||||||
|
PIDFILE=riot.pid
|
||||||
|
kill $(cat $PIDFILE)
|
||||||
|
rm $PIDFILE
|
Loading…
Reference in New Issue