Skip to content

Commit

Permalink
test : git action test7
Browse files Browse the repository at this point in the history
  • Loading branch information
wnsrl1228 committed May 29, 2024
1 parent 48a3aed commit 45e88a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ hooks:
AfterInstall:
- location: scripts/stop.sh
timeout: 60
runas: ubuntu
ApplicationStart:
- location: scripts/start.sh
timeout: 60
timeout: 60
runas: ubuntu
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cp $PROJECT_ROOT/build/libs/*.jar $JAR_FILE

# jar 파일 실행
echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG
nohup java -jar -Dspring.profiles.active=prod $JAR_FILE 1> /dev/null 2>&1 &
sudo nohup java -jar -Dspring.profiles.active=prod $JAR_FILE 1> /dev/null 2>&1 &

CURRENT_PID=$(pgrep -f $JAR_FILE)
echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG

0 comments on commit 45e88a7

Please sign in to comment.