From 4ff78b11a67ed5436d226ef0ba2e0b772557adbb Mon Sep 17 00:00:00 2001 From: wingyou Date: Mon, 25 Mar 2024 21:26:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=B0=ED=8F=AC=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=ED=83=80=EC=9E=84=EC=95=84=EC=9B=83=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JWT/deploy/runner.sh | 2 +- JWT/deploy/startup.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/JWT/deploy/runner.sh b/JWT/deploy/runner.sh index 7a31d29..13b6558 100755 --- a/JWT/deploy/runner.sh +++ b/JWT/deploy/runner.sh @@ -3,7 +3,7 @@ nohup java -jar $1 --spring.profiles.active=dev 2>&1 > out.log & echo "waiting for server to startup..." -sleep 60 +sleep 30 # after sleep, check server is still running. pid=$(sudo lsof -t -i :8080) diff --git a/JWT/deploy/startup.sh b/JWT/deploy/startup.sh index b76d5d0..1a91f94 100755 --- a/JWT/deploy/startup.sh +++ b/JWT/deploy/startup.sh @@ -8,6 +8,7 @@ script_dir=$(dirname "$0") exit_code=$? if [ $exit_code -ne 0 ]; then + echo "Error: there's some problems running new jar. recover backup jar." "${script_dir}/recover.sh" exit 1 fi