运行脚本

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

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

Loading…
Cancel
Save