uvicorn.run
env_file
Not Passed Correctly
#2328
Unanswered
oliv10
asked this question in
Potential Issue
Replies: 1 comment
-
Look at #2341 for more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Two distinctly different results when trying to pass the env file to the application.
Left
Running it in a test file that executes the app directly. This is the expected output / is working correctly.
Right
Running it from a built package using an entry point in my setup.py file that executes the method it is in.
Entrypoint
Env File
What I wanted to do was use an argparser to pass in the host and port dynamically while still being able to also pass other env variables that are needed for the application to run with a .env file.
I have been trying to figure this out for many hours and I cannot seem to understand why this issue is occurring at all. Any and all input is helpful, especially if this is an actual bug.
Beta Was this translation helpful? Give feedback.
All reactions