Skip to content

Commit

Permalink
배포
Browse files Browse the repository at this point in the history
  • Loading branch information
JONG-KYEONG committed Jan 8, 2024
1 parent 6f8fd5b commit 516a2cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ permissions:
hooks:
AfterInstall:
- location: scripts/deploy.sh
timeout: 60
timeout: 100
runas: ubuntu
8 changes: 4 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash

REPOSITORY=/home/ubuntu/GLOG
REPOSITORY=/home/ubuntu/GLOG/server
cd $REPOSITORY

APP_NAME=GLOG
JAR_NAME=$(ls $REPOSITORY/server/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/server/build/libs/$JAR_NAME
APP_NAME=GLOGG
JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

CURRENT_PID=$(pgrep -f $APP_NAME)

Expand Down

0 comments on commit 516a2cd

Please sign in to comment.