|
|
|
@ -11,21 +11,14 @@ export apiServer=https://risk.kirito.cool |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function run(){ |
|
|
|
|
isUpdate=false |
|
|
|
|
if [ ! -e $1 ] |
|
|
|
|
then |
|
|
|
|
git clone git@gogs.kirito.cool:panqihua/$1.git |
|
|
|
|
else |
|
|
|
|
isUpdate=true |
|
|
|
|
fi |
|
|
|
|
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode |
|
|
|
|
echo $isUpdate |
|
|
|
|
if [ $isUpdate ] |
|
|
|
|
then |
|
|
|
|
url="http://127.0.0.1:3000/finsh?name=$1" |
|
|
|
|
echo "成功回调地址:$url" |
|
|
|
|
curl $url |
|
|
|
|
fi |
|
|
|
|
url="http://127.0.0.1:3000/finsh?name=$1" |
|
|
|
|
echo "成功回调地址:$url" |
|
|
|
|
curl $url |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#检查是否正在部署 |
|
|
|
|