Commit 87ad9a51bb0c39ef8053408c1aad2d4f4cda6e27
1 parent
a000b07d
Exists in
master
and in
1 other branch
faet: 测试服配置和脚本
Showing
4 changed files
with
11 additions
and
11 deletions
Show diff stats
conf/pre.conf
| 1 | 1 | appname = api-game |
| 2 | -httpport = 80 | |
| 2 | +httpport = 60080 | |
| 3 | 3 | runmode = dev |
| 4 | 4 | autorender = false |
| 5 | 5 | copyrequestbody = true |
| ... | ... | @@ -28,4 +28,4 @@ dellogger = false |
| 28 | 28 | level = 8 |
| 29 | 29 | |
| 30 | 30 | |
| 31 | -include "/conf/pre.conf" | |
| 32 | 31 | \ No newline at end of file |
| 32 | +include "conf/pre.conf" | |
| 33 | 33 | \ No newline at end of file | ... | ... |
conf/prod.conf
| 1 | 1 | appname = api-game |
| 2 | -httpport = 80 | |
| 2 | +httpport = 60080 | |
| 3 | 3 | runmode = prod |
| 4 | 4 | autorender = false |
| 5 | 5 | copyrequestbody = true |
| ... | ... | @@ -29,4 +29,4 @@ dellogger = false |
| 29 | 29 | level = 5 |
| 30 | 30 | |
| 31 | 31 | |
| 32 | -include "/conf/prod.conf" | |
| 33 | 32 | \ No newline at end of file |
| 33 | +include "conf/prod.conf" | |
| 34 | 34 | \ No newline at end of file | ... | ... |
go.mod
sh/pre/api-game.sh
| ... | ... | @@ -8,11 +8,11 @@ elif [ $1 != "start" -a $1 != "restart" -a $1 != "stop" ]; then |
| 8 | 8 | fi |
| 9 | 9 | env=pre |
| 10 | 10 | nowdate=`date +"%Y%m%d%H%M"` |
| 11 | -execdir=/home/exec/merge/api/$nowdate | |
| 12 | -codedir=/home/code/go/merge/src/api-qixi | |
| 13 | -execname=api-qixi | |
| 14 | -execnewname=API_QIXI_$nowdate | |
| 15 | -ports=(60040) | |
| 11 | +execdir=/home/exec/apigame/api/$nowdate | |
| 12 | +codedir=/home/code/go/apigame/src | |
| 13 | +execname=apigame | |
| 14 | +execnewname=API_GAME_$nowdate | |
| 15 | +ports=(60080) | |
| 16 | 16 | codeport=80 |
| 17 | 17 | echo "${execname} script is begin...." |
| 18 | 18 | sleep 1s |
| ... | ... | @@ -42,7 +42,7 @@ do |
| 42 | 42 | fi |
| 43 | 43 | cp $execname $execdirpath/${execnewname}_${i} |
| 44 | 44 | cp -r conf $execdirpath/ |
| 45 | - cp -r ../conf $execdirpath/../ | |
| 45 | + #cp -r ../conf $execdirpath/../ | |
| 46 | 46 | sed -i "s#httpport = ${codeport}#httpport = ${i}#g" $execdirpath/conf/${env}.conf |
| 47 | 47 | if [ $? -ne 0 ]; then |
| 48 | 48 | echo "sed httpport ${codeport},i:${i} error" | ... | ... |