forked from teamgram/teamgram-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
60 lines (47 loc) · 1 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
#!/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
chatengine="$GOPATH/src/github.com/nebula-chat/chatengine"
echo "build document ..."
cd ${chatengine}/service/document
go build
#./document &
sleep 1
echo "build auth_session ..."
cd ${chatengine}/service/auth_session
go build
#./auth_session &
sleep 1
echo "build sync ..."
cd ${chatengine}/messenger/sync
go build
#./sync &
sleep 1
echo "build upload ..."
cd ${chatengine}/messenger/upload
go build
#./upload &
sleep 1
echo "build auth_key ..."
cd ${chatengine}/access/auth_key
go build
#./auth_key &
echo "build biz_server ..."
cd ${chatengine}/messenger/biz_server
go build
#./biz_server &
sleep 1
echo "build session ..."
cd ${chatengine}/access/session
go build
#./session &
sleep 1
echo "build frontend ..."
cd ${chatengine}/access/frontend
go build
#./frontend &
sleep 1
echo "***** wait *****"
wait