forked from Umass-Life/strain-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
strain.sh
executable file
·64 lines (55 loc) · 1 KB
/
strain.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
#!/bin/bash
if [ $1 = "rebuild" ]
then
mvn clean install -DskipTests
fi
if [ $1 = "1" ]
then
cmd="mvn spring-boot:run -pl config-service"
echo $cmd
eval $cmd;
fi
if [ $1 = "2" ]
then
cmd="mvn spring-boot:run -pl discovery-service"
echo $cmd
eval $cmd;
fi
if [ $1 = "3" ]
then
cmd="mvn spring-boot:run -pl api-gateway-service"
echo $cmd
eval $cmd;
fi
if [ $1 = "infra" ]
then
# mvn spring-boot:run -pl zuul-service
mvn spring-boot:run -pl config-service > conf-log.txt &
export a=$!
mvn spring-boot:run -pl discovery-service
echo "killed"
echo $a;
fi
#
# if [ $1 = "service" ]
# then
# # mvn spring-boot:run -pl fitbit-web-service > conf-log.txt
# fi
if [ $1 = "fitbit-web-service" ]
then
cmd="mvn spring-boot:run -pl fitbit-web-service"
echo $cmd;
eval $cmd;
fi
if [ $1 = "account-service" ]
then
cmd="mvn spring-boot:run -pl account-service"
echo $cmd;
eval $cmd;
fi
if [ $1 = "ema-service" ]
then
cmd="mvn spring-boot:run -pl ema-service"
echo $cmd;
eval $cmd;
fi