add script to install, start and stop riot
This commit is contained in:
parent
dcf4be79b7
commit
2cb83334ed
4 changed files with 17 additions and 0 deletions
1
riot/.gitignore
vendored
Normal file
1
riot/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
riot-web
|
8
riot/install.sh
Normal file
8
riot/install.sh
Normal 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
riot/start.sh
Normal file
5
riot/start.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
pushd riot-web/webapp/
|
||||
python -m SimpleHTTPServer 8080 &
|
||||
PID=$!
|
||||
popd
|
||||
echo $PID > riot.pid
|
3
riot/stop.sh
Normal file
3
riot/stop.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
PIDFILE=riot.pid
|
||||
kill $(cat $PIDFILE)
|
||||
rm $PIDFILE
|
Loading…
Reference in a new issue