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'