correction to add back environment variable support <3 docker
This commit is contained in:
parent
3ea31930e5
commit
3129a0e7e5
1 changed files with 1 additions and 1 deletions
|
@ -46,5 +46,5 @@ if __name__ == "__main__":
|
||||||
app = create_app(settings=settings)
|
app = create_app(settings=settings)
|
||||||
|
|
||||||
uvicorn.run(
|
uvicorn.run(
|
||||||
app, host=settings.host, port=settings.port
|
app, host=os.getenv("HOST", settings.host), port=int(os.getenv("PORT", settings.port))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue