运行脚本

master
pan 4 years ago
parent 4dc9d21456
commit 8f773f28d7
  1. 10
      run.sh

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

Loading…
Cancel
Save