Commit 27d2008cdb9a147ff3f23770ef013f4e431b4603

Authored by 王家文
1 parent 3f4646e0
Exists in master and in 1 other branch dev-wjw

build📦️:脚本

conf/prod.conf
1 1 appname = api-game
2   -httpport = 9051
  2 +httpport = 80
3 3 runmode = prod
4 4 autorender = false
5 5 copyrequestbody = true
... ...
sh/prod/apigame.sh
... ... @@ -11,7 +11,7 @@ fi
11 11 env=prod
12 12 nowdate=`date +"%Y%m%d%H%M"`
13 13 execdir=/goexec/exec/apigame/api/$nowdate
14   -codedir=/code/apigame/src
  14 +codedir=/code/go/apigame/src
15 15 execname=apigame
16 16 execnewname=APIGAME_$nowdate
17 17 ports=(9051 9052 9053 9054 9055)
... ...
sh/prod/build.sh
1 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 8 cd ${codedir}
8 9 if [ $? -ne 0 ];then
9 10 echo "cd ${codedir} error"
... ...
sh/prod/git.sh 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +#!/bin/bash
  2 +rm -fr /code/go/apigame/src/
  3 +git clone -q git@git.miso-lab.com:hermes/api-game.git /code/go/apigame/src/
  4 +if [ $? -ne 0 ];then
  5 + echo "git clone error"
  6 + exit 1
  7 +fi
  8 +
  9 +echo "git clone ok"
  10 +
  11 +
  12 +
  13 +exit 0
... ...