运行脚本

master
pan 4 years ago
parent 572beeed1f
commit 796377c9fd
  1. 13
      run.sh

@ -3,13 +3,18 @@
function run(){
nohup yarn start &
pid=-1
while(( pid==-1 ))
while true
do
sleep 1s
pid=`findPortPid $webPort`
if [ pid -eq '' ]
then
echo pid not found!!!
sleep 1s
else
echo "pid is $pid"
break
done
echo "pid is $pid"
touch $pid.log && chmod +x $pid.log
}

Loading…
Cancel
Save