diff --git a/conf/prod.conf b/conf/prod.conf index de0669d..0d74735 100644 --- a/conf/prod.conf +++ b/conf/prod.conf @@ -1,5 +1,5 @@ appname = api-game -httpport = 9051 +httpport = 80 runmode = prod autorender = false copyrequestbody = true diff --git a/sh/prod/apigame.sh b/sh/prod/apigame.sh index 670b6e9..061c81c 100644 --- a/sh/prod/apigame.sh +++ b/sh/prod/apigame.sh @@ -11,7 +11,7 @@ fi env=prod nowdate=`date +"%Y%m%d%H%M"` execdir=/goexec/exec/apigame/api/$nowdate -codedir=/code/apigame/src +codedir=/code/go/apigame/src execname=apigame execnewname=APIGAME_$nowdate ports=(9051 9052 9053 9054 9055) diff --git a/sh/prod/build.sh b/sh/prod/build.sh index d9385b2..e9ae944 100644 --- a/sh/prod/build.sh +++ b/sh/prod/build.sh @@ -1,9 +1,10 @@ # !/bin/bash -export GOPATH="/code/go:/code/apigame" +export GOPATH="/code/go:/code/go/apigame" +export GO111MODULE=on -codedir=/code/apigame/src +codedir=/code/go/apigame/src cd ${codedir} if [ $? -ne 0 ];then echo "cd ${codedir} error" diff --git a/sh/prod/git.sh b/sh/prod/git.sh new file mode 100644 index 0000000..fa9ba2e --- /dev/null +++ b/sh/prod/git.sh @@ -0,0 +1,13 @@ +#!/bin/bash +rm -fr /code/go/apigame/src/ +git clone -q git@git.miso-lab.com:hermes/api-game.git /code/go/apigame/src/ +if [ $? -ne 0 ];then + echo "git clone error" + exit 1 +fi + +echo "git clone ok" + + + +exit 0 -- libgit2 0.21.0