diff --git a/run.sh b/run.sh index 506fcd3..a7c482d 100644 --- a/run.sh +++ b/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 }