Skip to content

Commit

Permalink
fix: expose 5050
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Mar 19, 2024
1 parent fca080a commit edb6d3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .aws/task_definition_preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@
"memory": "8192",
"portMappings": [
{
"name": "xuexiao-80-tcp",
"containerPort": 80,
"hostPort": 80,
"name": "xuexiao-5050-tcp",
"containerPort": 5050,
"hostPort": 5050,
"protocol": "tcp",
"appProtocol": "http"
}
],
"command": [
"app.handler"
"uvicorn",
"app:app",
"--host",
"0.0.0.0",
"--port",
"5050",
"--workers",
"6"
],
"essential": true,
"environment": [],
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aws-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
with:
context: ./server/
file: Dockerfile.dev
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest
Expand Down

0 comments on commit edb6d3a

Please sign in to comment.