From d4bd329dd4c65f60da51ee0b725e00b82bfc6641 Mon Sep 17 00:00:00 2001 From: beming-dev Date: Sat, 11 Jan 2025 19:03:54 +0900 Subject: [PATCH] Update script --- scripts/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index fd2c389d..f270dacc 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,9 +1,12 @@ #!/bin/bash -set -e # 스크립트가 오류 발생 시 즉시 종료 +set -e # 오류 발생 시 즉시 종료 +# 디렉토리 권한 설정 sudo chmod -R 775 /home/ubuntu/frontend -sudo cd /home/ubuntu/frontend + +# 디렉토리 이동 +cd /home/ubuntu/frontend # ECR 로그인 aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend