-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-run-backend.sh
70 lines (58 loc) · 2.66 KB
/
admin-run-backend.sh
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
64
65
66
67
68
69
70
#!/usr/bin/env bash
echo "*********************************************************************************************"
echo "********************************* Model Repo ************************************************"
echo "*********************************************************************************************"
# step 1
echo "cd model"
cd model || exit
# step 2
echo "mvn clean install"
mvn clean install
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo "*********************************************************************************************"
echo "********************************* Common Repo ************************************************"
echo "*********************************************************************************************"
# step 3
echo "cd .."
cd ..
# step 4
echo "cd common"
cd common || exit
# step 5
echo "mvn clean install"
mvn clean install
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo "*********************************************************************************************"
echo "********************************* Admin Api Repo *********************************************"
echo "*********************************************************************************************"
# step 6
echo "cd .."
cd ..
# step 7
echo "cd admin-api"
cd admin-api || exit
# step 8
echo "mvn spring-boot:run"
mvn spring-boot:run
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo "*********************************************************************************************"
echo "********************************* Build Success *****************************************"
echo "*********************************************************************************************"
else
echo "*********************************************************************************************"
echo "********************************* Build Fail *****************************************"
echo "*********************************************************************************************"
fi
else
echo "*********************************************************************************************"
echo "********************************* Build Fail *****************************************"
echo "*********************************************************************************************"
fi
else
echo "*********************************************************************************************"
echo "********************************* Build Fail *****************************************"
echo "*********************************************************************************************"
fi