From 11d9e5484058cbcbca3ae48d04bf17af26d24c09 Mon Sep 17 00:00:00 2001 From: beming-dev Date: Sat, 11 Jan 2025 14:32:09 +0900 Subject: [PATCH] Update deploy spec --- Dockerfile | 2 +- scripts/deploy.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index afab25cd..44d7fb8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ COPY --from=builder /app/node_modules ./node_modules ENV NODE_ENV=production # 11. Expose the port -EXPOSE 3001 +EXPOSE 3000 # 12. Start the Next.js app CMD ["npm", "start"] \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh index fb853efe..d6b3c7d1 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -28,8 +28,8 @@ APPLE_PRIVATE_KEY=$(aws secretsmanager get-secret-value --secret-id about/fronte APPLE_TEAM_ID=$(aws secretsmanager get-secret-value --secret-id about/frontend --query SecretString --output text | jq -r '.APPLE_TEAM_ID') docker pull 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest -docker stop nest-app || true -docker rm nest-app || true +docker stop next-app || true +docker rm next-app || true docker run -d \ -e EDGE_AWS_ACCESS_KEY_ID=$EDGE_AWS_ACCESS_KEY_ID \ -e EDGE_AWS_SECRET_ACCESS_KEY=$EDGE_AWS_SECRET_ACCESS_KEY \ @@ -56,4 +56,4 @@ docker run -d \ -e APPLE_KEY_ID=$APPLE_KEY_ID \ -e APPLE_PRIVATE_KEY=$APPLE_PRIVATE_KEY \ -e APPLE_TEAM_ID=$APPLE_TEAM_ID \ - --name my-app -p 80:3001 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest \ No newline at end of file + --name next-app -p 3000:3000 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest \ No newline at end of file