diff --git a/run.sh b/run.sh index 1645d9e..b09dc9c 100644 --- a/run.sh +++ b/run.sh @@ -2,9 +2,13 @@ function run(){ nohup yarn start & - sleep 5s - pid=`findPortPid $webPort` - echo "pid is $pid" + + pid=-1 + while(( pid==-1 )) + do + pid=`findPortPid $webPort` + echo "pid is $pid" + done touch $pid.log && chmod +x $pid.log }