From 2d4ddfd517eaad4fd76688b393748f34dea81721 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Wed, 28 Aug 2024 09:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone-datacenter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone-datacenter.yml b/.drone-datacenter.yml index 239d7ebb9..a3ea0c207 100644 --- a/.drone-datacenter.yml +++ b/.drone-datacenter.yml @@ -102,11 +102,11 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 - mvn package -Dmaven.test.skip=true - port=48092 # 指定端口号 - pid=$(lsof -t -i:$port) # 获取占用指定端口的进程号 - - if [ -n "$pid" ]; then # 如果进程号不为>>空,则杀死进程 + - if [[ -n "$pid" ]]; then echo "Killing process $pid" kill -9 $pid fi - - nohup java -Xms256m -Xms256m -jar ludu-module-datacenter/ludu-module-datacenter-biz/target/ludu-module-datacenter-biz.jar > api.log & + - nohup java -Xms256m -Xmx256m -jar ludu-module-datacenter/ludu-module-datacenter-biz/target/ludu-module-datacenter-biz.jar > api.log & volumes: # 定义流水线挂载目录,用于共享数据