运行脚本

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`
done
if [ pid -eq '' ]
then
echo pid not found!!!
sleep 1s
else
echo "pid is $pid"
break
done
touch $pid.log && chmod +x $pid.log
}

Loading…
Cancel
Save