service deployed and not available
koombal
HOBBYOP

2 years ago

uvicorn pacjaged with docker.

python code:

if __name__ == "__main__":
    import uvicorn

        uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", default=8001)), log_config=CONFIG)

in the logs i see the uvicorn is starting with port 8000

i also set a service env variable PORT=80011. why uvicorn is starting with 8000?

  1. why PORT is not read from service?

Solved

2 Replies

koombal
HOBBYOP

2 years ago

The issue is from the CMD command in docker file, can't find how to delete the post



Status changed to Solved Railway over 1 year ago


Loading...