运行脚本

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

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

Loading…
Cancel
Save