-
Notifications
You must be signed in to change notification settings - Fork 25
/
build-run-all.sh
46 lines (44 loc) · 1011 Bytes
/
build-run-all.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
#! /bin/bash
project_names=(
"micro-mall-api"
"micro-mall-users"
"micro-mall-users-consumer"
"micro-mall-users-cron"
"micro-mall-shop"
"micro-mall-shop-cron"
"micro-mall-trolley"
"micro-mall-sku"
"micro-mall-sku-cron"
"micro-mall-order"
"micro-mall-order-cron"
"micro-mall-order-consumer"
"micro-mall-pay"
"micro-mall-pay-consumer"
"micro-mall-logistics"
"micro-mall-comments"
"micro-mall-search"
"micro-mall-search-cron"
"micro-mall-search-shop-consumer"
"micro-mall-search-sku-consumer"
"micro-mall-search-users-consumer"
"micro-mall-search-order-consumer"
)
# 循环目录 构建运行
function loopPathBuildRun() {
for file in ${project_names[*]}; do
cd "$file" || exit
echo "=> $file"
sh build-run.sh
cd ../
done
}
# 返回上一级
cd ../
# 遍历所有目录构建运行
# shellcheck disable=SC2046
loopPathBuildRun $(pwd)
# shellcheck disable=SC2028
echo "\n"
echo "启动完成,显示 micro-mall-* 进程运行状态"
# shellcheck disable=SC2009
ps -ef | grep micro-mall