Commit d188444d7108fdba58b602ada67ef6a205f6cc2d

Authored by 王家文
1 parent f1704d8f
Exists in master

feat✨:配置管理

sh/pre/auto.sh
... ... @@ -13,13 +13,17 @@ if [ $? -ne 0 ];then
13 13 exit 3
14 14 fi
15 15  
  16 +sh /sh/apigame/conf.sh
  17 +if [ $? -ne 0 ];then
  18 + exit 4
  19 +fi
  20 +
16 21 binname=apigame
17 22 sh /sh/apigame/build.sh ${binname}
18 23 if [ $? -ne 0 ];then
19 24 exit 1
20 25 fi
21 26  
22   -
23 27 sleep 1s
24 28 sh /sh/apigame/apigame.sh ${1}
25 29 if [ $? -ne 0 ];then
... ...
sh/pre/conf.sh 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 + # !/bin/bash
  2 +scdir=/home/code/go/apigame/src/conf/bytes
  3 +descdir=/home/etc/apigame
  4 +
  5 +cp -r $scdir $descdir
  6 +
  7 +exit 0
... ...
sh/prod/auto.sh
1 1 # !/bin/bash
2 2 binname=$1
3 3  
  4 +sh /sh/apigame/conf.sh
  5 +if [ $? -ne 0 ];then
  6 + exit 4
  7 +fi
  8 +
4 9 sh /sh/apigame/build.sh apigame
5 10 if [ $? -ne 0 ];then
6 11 exit 1
... ...
sh/prod/conf.sh 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 + # !/bin/bash
  2 +scdir=/code/go/apigame/src/conf/bytes
  3 +descdir=/goexec/exec/apigame
  4 +
  5 +cp -r $scdir $descdir
  6 +
  7 +exit 0
... ...