forked from open-telegram-server/telegramd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
60 lines (48 loc) · 1018 Bytes
/
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
telegramd="$GOPATH/src/github.com/nebulaim/telegramd"
echo "build frontend ..."
cd ${telegramd}/server/access/frontend
go get
go build
./frontend &
echo "build auth_key ..."
cd ${telegramd}/server/access/auth_key
go get
go build
./auth_key &
echo "build auth_session ..."
cd ${telegramd}/server/access/auth_session
go get
go build
./auth_session &
echo "build sync ..."
cd ${telegramd}/server/sync
go get
go build
./sync &
echo "build upload ..."
cd ${telegramd}/server/upload
go get
go build
./upload &
echo "build document ..."
cd ${telegramd}/service/document
go get
go build
./document &
echo "build biz_server ..."
cd ${telegramd}/server/biz_server
go get
go build
./biz_server &
echo "build session ..."
cd ${telegramd}/server/access/session
go get
go build
./session &
echo "***** wait *****"
wait