|
|
@@ -2,15 +2,15 @@
|
|
|
|
|
|
export base=$HOME/build/git/MTP20_IF
|
|
|
|
|
|
-export GOROOT=/home/pub/pathhome/go1.14.4.linux-amd64
|
|
|
-export GOPATH=/home/pub/go:/home/pub/build/git/websocket2tcp:/home/pub/build/git/OpenAccount_WebAPI/WebAPI
|
|
|
+export GOROOT=/home/pub/go
|
|
|
+export GOPATH=/home/pub/gowebapi
|
|
|
export GOBIN=$GOPATH/bin
|
|
|
export GO111MODULE=on
|
|
|
export GOPROXY=https://goproxy.cn
|
|
|
export PATH=$PATH:$GOROOT/bin:$GOBIN
|
|
|
|
|
|
-export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
|
|
|
-export LD_LIBRARY_PATH=/opt/instantclient_11_2/
|
|
|
+export PKG_CONFIG_PATH=/home/pub/pkconfig
|
|
|
+export LD_LIBRARY_PATH=/home/pub/instantclient_11_2/
|
|
|
|
|
|
function build()
|
|
|
{
|
|
|
@@ -33,16 +33,21 @@ function build()
|
|
|
fi
|
|
|
|
|
|
cd $src
|
|
|
- #sh $HOME/build/scripts/xml_to_j2.sh openaccount_api $src/src/OpenAccountApi/
|
|
|
+ #sh $HOME/build/scripts/xml_to_j2.sh queryservice $src/
|
|
|
echo "path:"$src
|
|
|
- go build -o bin/QueryService
|
|
|
+ go build -a -o bin/QueryService
|
|
|
if [ $? -ne 0 ]; then
|
|
|
echo "go build err: 2"
|
|
|
exit 2
|
|
|
fi
|
|
|
- #cp -r config bin/
|
|
|
mkdir -p bin/config
|
|
|
- cp config/config.xml bin/config
|
|
|
+ cp -r $src/config/config.xml bin/config/
|
|
|
+ cp -r $src/config/cfg.json bin/config/
|
|
|
+ cp -r $src/config/config.j2 bin/config/
|
|
|
+ cp -r $src/config/cfg.j2 bin/config/
|
|
|
+ cp -r $src/config/pc_menu.json bin/config/
|
|
|
+ cp -r $src/config/mobile_menu.json bin/config/
|
|
|
+ cp -r $src/config/pcweb_menu bin/config/
|
|
|
|
|
|
local datestr=`date +%Y%m%d%H%M%S`
|
|
|
|