From 0db53506c816cedc8c38ef4ad27eb5d2b8560d8a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 27 Oct 2020 23:27:52 +0800 Subject: [PATCH] 1 --- scripts/publish_golang/boundle.sh | 2 ++ scripts/publish_golang/restart.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/publish_golang/boundle.sh b/scripts/publish_golang/boundle.sh index 4b04732..0191537 100644 --- a/scripts/publish_golang/boundle.sh +++ b/scripts/publish_golang/boundle.sh @@ -17,6 +17,8 @@ then cd $work_dir fi +cp ../bin/${SRC_EXE_NAME} ../../../../bin/${PROJECT_NAME} + cd ${SOURCE_PATH} echo ${COMPILE_CMD}|sh cd $work_dir diff --git a/scripts/publish_golang/restart.sh b/scripts/publish_golang/restart.sh index 7842644..6af88e4 100755 --- a/scripts/publish_golang/restart.sh +++ b/scripts/publish_golang/restart.sh @@ -2,7 +2,7 @@ source ./common.sh -pid=$(ps -ef|grep "${EXE_NAME} -n $2 -i $1"|grep -v grep|awk '{print $2}') +pid=$(ps -ef|grep "${PROJECT_NAME} -n $2 -i $1"|grep -v grep|awk '{print $2}') echo $pid if [[ $pid != "" ]] @@ -12,6 +12,6 @@ else echo "pid 为空" fi -nohup ./${EXE_NAME} -n $2 -i $1 >> ${EXE_NAME}$2_$1.out & +nohup ./${PROJECT_NAME} -n $2 -i $1 >> ${PROJECT_NAME}$2_$1.out & echo 'success'