Commit 27d2008cdb9a147ff3f23770ef013f4e431b4603
1 parent
3f4646e0
Exists in
master
and in
1 other branch
build📦️:脚本
Showing
4 changed files
with
18 additions
and
4 deletions
Show diff stats
conf/prod.conf
sh/prod/apigame.sh
| @@ -11,7 +11,7 @@ fi | @@ -11,7 +11,7 @@ fi | ||
| 11 | env=prod | 11 | env=prod |
| 12 | nowdate=`date +"%Y%m%d%H%M"` | 12 | nowdate=`date +"%Y%m%d%H%M"` |
| 13 | execdir=/goexec/exec/apigame/api/$nowdate | 13 | execdir=/goexec/exec/apigame/api/$nowdate |
| 14 | -codedir=/code/apigame/src | 14 | +codedir=/code/go/apigame/src |
| 15 | execname=apigame | 15 | execname=apigame |
| 16 | execnewname=APIGAME_$nowdate | 16 | execnewname=APIGAME_$nowdate |
| 17 | ports=(9051 9052 9053 9054 9055) | 17 | ports=(9051 9052 9053 9054 9055) |
sh/prod/build.sh
| 1 | # !/bin/bash | 1 | # !/bin/bash |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | -export GOPATH="/code/go:/code/apigame" | 4 | +export GOPATH="/code/go:/code/go/apigame" |
| 5 | +export GO111MODULE=on | ||
| 5 | 6 | ||
| 6 | -codedir=/code/apigame/src | 7 | +codedir=/code/go/apigame/src |
| 7 | cd ${codedir} | 8 | cd ${codedir} |
| 8 | if [ $? -ne 0 ];then | 9 | if [ $? -ne 0 ];then |
| 9 | echo "cd ${codedir} error" | 10 | echo "cd ${codedir} error" |