forked from teamgram/teamgram-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
61 lines (47 loc) · 1.04 KB
/
build.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
#!/usr/bin/env bash
# todo(yumcoder) change dc ip
# sed -i '/ipAddress = /c\ipAddress = 127.0.0.1' a.txt
# todo(yumcoder) change folder path for nbfs
docker start mysql-docker redis-docker etcd-docker
PluralityServer="$GOPATH/src/github.com/PluralityNET/PluralityServer"
echo "build document ..."
cd ${PluralityServer}/service/document
go build
./document &
sleep 1
echo "build auth_session ..."
cd ${PluralityServer}/service/auth_session
go build
./auth_session &
sleep 1
echo "build sync ..."
cd ${PluralityServer}/messenger/sync
go build
./sync &
sleep 1
echo "build upload ..."
cd ${PluralityServer}/messenger/upload
go build
./upload &
sleep 1
echo "build auth_key ..."
cd ${PluralityServer}/access/auth_key
go build
./auth_key &
echo "build biz_server ..."
cd ${PluralityServer}/messenger/biz_server
go build
./biz_server &
sleep 1
echo "build session ..."
cd ${PluralityServer}/access/session
go build
./session &
sleep 1
echo "build frontend ..."
cd ${PluralityServer}/access/frontend
go build
./frontend &
sleep 1
echo "***** wait *****"
wait