ModuleNotFoundError: No module named ‘database is the error i can see when looking into the web app logs in Azure.
Im sure my database.py is in the same dir as the main.py and when i run it locally it works.
i run it locally with: uvicorn main:app –reload
when i deploy it, it succeeds but when clicking on the link to go to the live server it just error handles me out.
for the startup command in azure i use: gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app
what can i do more?
For context: im using a github repo as deployment center in azure(and im trying to deploy a fastapi backend)
Looked on stack overflow for someone who had a similar problem, looked on youtube.
DeNaamIsDaaf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.