-
Notifications
You must be signed in to change notification settings - Fork 9
/
buildprod.sh
executable file
·33 lines (26 loc) · 1.49 KB
/
buildprod.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
#! /bin/bash
# use for local test
rm -rf ~/goprojects/bin/runtime/templates
mkdir ~/goprojects/bin/runtime/templates
cp ~/goprojects/src/github.com/haibeichina/gin_video_server/streamserver/runtime/templates/upload.html ~/goprojects/bin/runtime/templates
cp -R ~/goprojects/src/github.com/haibeichina/gin_video_server/web/runtime/templates/* ~/goprojects/bin/runtime/templates
rm ~/goprojects/bin/conf/apiserver.ini
rm ~/goprojects/bin/apiserver
cp ~/goprojects/src/github.com/haibeichina/gin_video_server/apiserver/conf/apiserver.ini ~/goprojects/bin/conf/
cd ~/goprojects/src/github.com/haibeichina/gin_video_server/apiserver
go build -o ~/goprojects/bin/apiserver
rm ~/goprojects/bin/conf/scheduler.ini
rm ~/goprojects/bin/scheduler
cp ~/goprojects/src/github.com/haibeichina/gin_video_server/scheduler/conf/scheduler.ini ~/goprojects/bin/conf/
cd ~/goprojects/src/github.com/haibeichina/gin_video_server/scheduler
go build -o ~/goprojects/bin/scheduler
rm ~/goprojects/bin/conf/streamserver.ini
rm ~/goprojects/bin/streamserver
cp ~/goprojects/src/github.com/haibeichina/gin_video_server/streamserver/conf/streamserver.ini ~/goprojects/bin/conf/
cd ~/goprojects/src/github.com/haibeichina/gin_video_server/streamserver
go build -o ~/goprojects/bin/streamserver
rm ~/goprojects/bin/conf/web.ini
rm ~/goprojects/bin/web
cp ~/goprojects/src/github.com/haibeichina/gin_video_server/web/conf/web.ini ~/goprojects/bin/conf/
cd ~/goprojects/src/github.com/haibeichina/gin_video_server/web
go build -o ~/goprojects/bin/web