Azure-Samples / Azure-Samples/msdocs-python-fastapi-webapp-quickstart

Deployed App Time out due to wrong port specification on Azure container deployment command

Offen
#2 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Bicep
Sterne
45
Forks
184
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

> Please provide us with the following information:
> I followed through the tutorial [here](https://learn.microsoft.com/en-us/azure/developer/python/tutorial-containerize-simple-web-app?tabs=web-app-fastapi). Under the [section ](https://learn.microsoft.com/en-us/azure/developer/python/tutorial-containerize-simple-web-app?tabs=web-app-fastapi) the port specified on the Dockerfile and gunicorn.conf.py is 3100 while the specified for the container App command to deploy is 80. This will make the deployed App not to render and timeout. I will suggest that the port on the gunicorn.conf.py, Dockerfile and Container App command to be harmonised so that this issue doesn't occur for those want to follow the tutorial to deploy their FastAPI App on Azure container App.

To be precise the port on container App command should be
```
az containerapp up \
--resource-group web-fastapi-aca-rg --name web-aca-app \
--ingress external --target-port 3100 --source .
```
### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>

### Any log messages given by the failure
>

### Expected/desired behavior
>

### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.