From 4dc9d214567c7e06900e15a211940450ab980413 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Fri, 9 Oct 2020 20:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run.sh b/run.sh index 07ad613..1645d9e 100644 --- a/run.sh +++ b/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 }