From dad8cf678f47277cf23e274486d2215973c94731 Mon Sep 17 00:00:00 2001 From: Kim Jiyoon Date: Tue, 27 Feb 2024 12:34:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ec2=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EC=A0=80=EC=9E=A5=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/appspec.yml | 7 +++++-- backend/scripts/deploy.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/appspec.yml b/backend/appspec.yml index f663dbbc..64e0e04f 100644 --- a/backend/appspec.yml +++ b/backend/appspec.yml @@ -3,8 +3,11 @@ os: linux files: - source: / - destination: /home/ubuntu/app # 인스턴스에서 파일이 저장될 위치 - + destination: /home/ubuntu/howabouttrip +permissions: + - object: /home/ubuntu/howabouttrip/ + owner: ubuntu + group: ubuntu hooks: AfterInstall: - location: scripts/deploy.sh diff --git a/backend/scripts/deploy.sh b/backend/scripts/deploy.sh index c04cee0b..a40b1895 100644 --- a/backend/scripts/deploy.sh +++ b/backend/scripts/deploy.sh @@ -1,4 +1,4 @@ -REPOSITORY=/home/ubuntu/app +REPOSITORY=/home/ubuntu/howabouttrip cd $REPOSITORY JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)