增加openresty

master
pan 4 years ago
parent d25abefc3c
commit 8fe93add81
  1. 6
      shell/killNode
  2. 2
      shell/savePid
  3. 2
      shell/updateRisk

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
#杀死进程 #杀死进程
if [ -e $1.pid ] if [ -e run.pid ]
then then
p=`cat $1.pid` p=`cat run.pid`
kill -9 $p kill -9 $p
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
echo "成功杀死进程:$p" echo "成功杀死进程:$p"
rm -f pid rm -f run.pid
fi fi
fi fi
./run.sh ./run.sh

@ -11,7 +11,7 @@ while true
sleep $second sleep $second
else else
echo "端口:$1的pid:$pid" echo "端口:$1的pid:$pid"
echo $pid>$1.pid echo $pid>run.pid
break break
fi fi
done done

@ -23,7 +23,7 @@ function run(){
then then
git clone git@gogs.kirito.cool:panqihua/$1.git git clone git@gogs.kirito.cool:panqihua/$1.git
fi fi
cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode $1 cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode
} }
run $1 run $1

Loading…
Cancel
Save