diff --git a/.github/workflows/be-deploy.yml b/.github/workflows/be-deploy.yml index 62904e0..5e79ff6 100644 --- a/.github/workflows/be-deploy.yml +++ b/.github/workflows/be-deploy.yml @@ -2,7 +2,7 @@ name: Upbrella DEV CI on: push: - branches: [ "main" ] + branches: [ "fix/fix-deploy" ] env: WORKING_DIRECTORY: ./ diff --git a/appspec.yml b/appspec.yml index 3744273..1a29d29 100644 --- a/appspec.yml +++ b/appspec.yml @@ -11,7 +11,6 @@ permissions: mode: 755 hooks: AfterInstall: - # location은 프로젝트의 root경로를 기준 - location: deploy.sh timeout: 60 runas: root \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 0958151..435ec8b 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash REPOSITORY=/opt/testapp -APP_NAME=upbrella-dev-deploy +APP_NAME=yonsei-golf-deploy cd $REPOSITORY JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | tail -n 1) @@ -18,4 +18,4 @@ else fi echo "> $JAR_PATH 배포" -java -jar Yonsei-Golf-Server-0.0.1-SNAPSHOT.jar > app.log 2>&1 & \ No newline at end of file +java -jar $JAR_PATH > app.log 2>&1 & \ No newline at end of file