mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-05 04:21:17 +02:00
add script to install, start and stop riot
This commit is contained in:
parent
dcf4be79b7
commit
2cb83334ed
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…
x
Reference in New Issue
Block a user