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 +13,17 @@ if [ $? -ne 0 ];then
13 exit 3 13 exit 3
14 fi 14 fi
15 15
  16 +sh /sh/apigame/conf.sh
  17 +if [ $? -ne 0 ];then
  18 + exit 4
  19 +fi
  20 +
16 binname=apigame 21 binname=apigame
17 sh /sh/apigame/build.sh ${binname} 22 sh /sh/apigame/build.sh ${binname}
18 if [ $? -ne 0 ];then 23 if [ $? -ne 0 ];then
19 exit 1 24 exit 1
20 fi 25 fi
21 26
22 -  
23 sleep 1s 27 sleep 1s
24 sh /sh/apigame/apigame.sh ${1} 28 sh /sh/apigame/apigame.sh ${1}
25 if [ $? -ne 0 ];then 29 if [ $? -ne 0 ];then
sh/pre/conf.sh 0 → 100644
@@ -0,0 +1,7 @@ @@ -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 # !/bin/bash 1 # !/bin/bash
2 binname=$1 2 binname=$1
3 3
  4 +sh /sh/apigame/conf.sh
  5 +if [ $? -ne 0 ];then
  6 + exit 4
  7 +fi
  8 +
4 sh /sh/apigame/build.sh apigame 9 sh /sh/apigame/build.sh apigame
5 if [ $? -ne 0 ];then 10 if [ $? -ne 0 ];then
6 exit 1 11 exit 1
sh/prod/conf.sh 0 → 100644
@@ -0,0 +1,7 @@ @@ -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