Skip to content

Commit

Permalink
Update deploy spec
Browse files Browse the repository at this point in the history
  • Loading branch information
beming-dev committed Jan 11, 2025
1 parent 95848f5 commit 11d9e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
--name next-app -p 3000:3000 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest

0 comments on commit 11d9e54

Please sign in to comment.