运行脚本

master
pan 4 years ago
parent 578b76a9d7
commit 572beeed1f
  1. 8
      run.sh

@ -3,8 +3,12 @@
function run(){
nohup yarn start &
wait
pid=`findPortPid $webPort`
pid=-1
while(( pid==-1 ))
do
sleep 1s
pid=`findPortPid $webPort`
done
echo "pid is $pid"
touch $pid.log && chmod +x $pid.log
}

Loading…
Cancel
Save