forked from ant-media/StreamApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredeploy.sh
More file actions
executable file
·63 lines (46 loc) · 865 Bytes
/
redeploy.sh
File metadata and controls
executable file
·63 lines (46 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
AMS_DIR=~/softwares/ant-media-server
#Latest sdk is to be deployed to src/main/webapp
rm -rf dist
npm run compile
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
#Deploy latest embedded player to the src/main/webapp
cd embedded-player
rm -rf dist
npm run compile
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
npm run deploy
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
#switch back to first dir
cd ..
mvn clean install -DskipTests -Dgpg.skip=true
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
rm $AMS_DIR/StreamApp*.war
cp target/StreamApp.war $AMS_DIR
OUT=$?
if [ $OUT -ne 0 ]; then
exit $OUT
fi
cd $AMS_DIR
rm -r webapps/*App*
rm -rf webapps/live
bash create_app.sh LiveApp $AMS_DIR
bash create_app.sh WebRTCAppEE $AMS_DIR
bash create_app.sh live $AMS_DIR
#./start-debug.sh