Skip to content

cannot use other functions to apply a port without fastapi #310

Answered by tiangolo
aLowMagic asked this question in Questions
Discussion options

You must be logged in to vote

From the error it seems like your app is trying to listen on the same port with two different tings, but not sure what it could be.

Nevertheless, now that Uvicorn supports managing workers with --workers, including restarting dead ones, there's no need for Gunicorn. That also means that it's much simpler to build a Docker image from scratch now, I updated the docs to explain it.

Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image

That might make configurations easier. 🤓

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #107 on August 25, 2024 03:44.