From 42674570e52caf40bbc6f8985e68887807ce7752 Mon Sep 17 00:00:00 2001 From: wnsrl Date: Wed, 29 May 2024 20:11:29 +0900 Subject: [PATCH] test : git action test3 --- appspec.yml | 4 +--- scripts/stop.sh | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/appspec.yml b/appspec.yml index 9882a4f..8006327 100644 --- a/appspec.yml +++ b/appspec.yml @@ -16,8 +16,6 @@ hooks: AfterInstall: - location: scripts/stop.sh timeout: 60 - runas: ubuntu ApplicationStart: - location: scripts/start.sh - timeout: 60 - runas: ubuntu \ No newline at end of file + timeout: 60 \ No newline at end of file diff --git a/scripts/stop.sh b/scripts/stop.sh index c675183..0c581ed 100644 --- a/scripts/stop.sh +++ b/scripts/stop.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -PROJECT_ROOT="/home/ubuntu/app" +PROJECT_ROOT="/home/ubuntu/memetitle" JAR_FILE="$PROJECT_ROOT/memetitle.jar" DEPLOY_LOG="$PROJECT_ROOT/deploy.log" @@ -15,5 +15,5 @@ if [ -z $CURRENT_PID ]; then echo "$TIME_NOW > 현재 실행중인 애플리케이션이 없습니다" >> $DEPLOY_LOG else echo "$TIME_NOW > 실행중인 $CURRENT_PID 애플리케이션 종료 " >> $DEPLOY_LOG - sudo kill -15 $CURRENT_PID + sudo kill -9 $CURRENT_PID fi \ No newline at end of file