-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·32 lines (26 loc) · 876 Bytes
/
start.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
#!/bin/bash
WORKFLOW=$1
TASK=$2
ID=$3
BASE_DIR=`pwd`
SERVER_DIR=${BASE_DIR}/server
CLIENT_DIR=${BASE_DIR}/client
# ############################################################################ #
# START SERVER #
# ############################################################################ #
cd ${SERVER_DIR}
./start.sh
sleep 10
# ############################################################################ #
# START CLIENT #
# ############################################################################ #
cd ${CLIENT_DIR}
if [ ! -d "${CLIENT_DIR}/dist" ]; then
make clean all
make install
fi
cd ${CLIENT_DIR}/dist
./start.sh -w ${WORKFLOW} -t ${TASK} -e ${ID}
export MF_USER=${WORKFLOW}
export MF_TASKID=${TASK}
export MF_EXPID=${ID}