运行脚本

master
pan 4 years ago
parent eb5b0e6d18
commit 4dc9d21456
  1. 5
      run.sh

@ -1,12 +1,9 @@
#!/bin/sh
export PORT=2233
export webClient=http://localhost:5000
function run(){
nohup yarn start &
sleep 5s
pid=`findPortPid $PORT`
pid=`findPortPid $webPort`
echo "pid is $pid"
touch $pid.log && chmod +x $pid.log
}

Loading…
Cancel
Save