-
Hello together, how can I expose the application on a different port other than 8000? I tried to change |
Beta Was this translation helpful? Give feedback.
Answered by
rszamszur
Mar 10, 2023
Replies: 1 comment
-
Hey @amrap030 The
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amrap030
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @amrap030
The
gunicorn.py
is a part of the package. For development, make sure you have installed your project in editable mode to always have the latest changes. However, you can still override thegunicorn.py
default port by one of the following:export FASTAPI_BIND=127.0.0.1:7000
serve
command--bind
option:$YOUR_PROJECT_SCRIPT_NAME serve --bind 127.0.0.1:7000