diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5fa72ca..2fa209e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,7 @@ - + diff --git a/appspec.yml b/appspec.yml index 28ec0c6..c4c9b00 100644 --- a/appspec.yml +++ b/appspec.yml @@ -13,5 +13,5 @@ permissions: hooks: AfterInstall: - location: scripts/deploy.sh - timeout: 60 + timeout: 100 runas: ubuntu \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 2645e46..f02fcdf 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -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)