运行脚本

master
pan 4 years ago
parent c1401c3429
commit b93642901b
  1. 16
      run.sh

@ -2,21 +2,7 @@
function run(){ function run(){
nohup yarn start & nohup yarn start &
savePid $PORT
while true
do
pid=`findPortPid $PORT`
if [ -z $pid ]
then
echo "pid not found!!!"
sleep 1s
else
echo "pid is $pid"
break
fi
done
touch $pid.log && chmod +x $pid.log
} }
killNode run killNode run
Loading…
Cancel
Save