From 87ad9a51bb0c39ef8053408c1aad2d4f4cda6e27 Mon Sep 17 00:00:00 2001 From: 王家文 Date: Wed, 10 Apr 2024 11:30:29 +0800 Subject: [PATCH] faet: 测试服配置和脚本 --- conf/pre.conf | 4 ++-- conf/prod.conf | 4 ++-- go.mod | 2 +- sh/pre/api-game.sh | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/conf/pre.conf b/conf/pre.conf index 6324477..ce94a9f 100644 --- a/conf/pre.conf +++ b/conf/pre.conf @@ -1,5 +1,5 @@ appname = api-game -httpport = 80 +httpport = 60080 runmode = dev autorender = false copyrequestbody = true @@ -28,4 +28,4 @@ dellogger = false level = 8 -include "/conf/pre.conf" \ No newline at end of file +include "conf/pre.conf" \ No newline at end of file diff --git a/conf/prod.conf b/conf/prod.conf index 491d8f7..3cb2490 100644 --- a/conf/prod.conf +++ b/conf/prod.conf @@ -1,5 +1,5 @@ appname = api-game -httpport = 80 +httpport = 60080 runmode = prod autorender = false copyrequestbody = true @@ -29,4 +29,4 @@ dellogger = false level = 5 -include "/conf/prod.conf" \ No newline at end of file +include "conf/prod.conf" \ No newline at end of file diff --git a/go.mod b/go.mod index d5137e4..2127c41 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module apigame -go 1.20.1 +go 1.20 require ( gitee.com/lxgow/lxconv v0.0.0-20230406110318-b5c75fb5ba53 diff --git a/sh/pre/api-game.sh b/sh/pre/api-game.sh index 6bbba79..99ff6aa 100644 --- a/sh/pre/api-game.sh +++ b/sh/pre/api-game.sh @@ -8,11 +8,11 @@ elif [ $1 != "start" -a $1 != "restart" -a $1 != "stop" ]; then fi env=pre nowdate=`date +"%Y%m%d%H%M"` -execdir=/home/exec/merge/api/$nowdate -codedir=/home/code/go/merge/src/api-qixi -execname=api-qixi -execnewname=API_QIXI_$nowdate -ports=(60040) +execdir=/home/exec/apigame/api/$nowdate +codedir=/home/code/go/apigame/src +execname=apigame +execnewname=API_GAME_$nowdate +ports=(60080) codeport=80 echo "${execname} script is begin...." sleep 1s @@ -42,7 +42,7 @@ do fi cp $execname $execdirpath/${execnewname}_${i} cp -r conf $execdirpath/ - cp -r ../conf $execdirpath/../ + #cp -r ../conf $execdirpath/../ sed -i "s#httpport = ${codeport}#httpport = ${i}#g" $execdirpath/conf/${env}.conf if [ $? -ne 0 ]; then echo "sed httpport ${codeport},i:${i} error" -- libgit2 0.21.0