Unable to deploying a FastAPI app

Question:
I have a fastapi that works properly when running using shell but am unable to deploy it using autoscale. I get the following error:

sh: 1: uvicorn main:app --reload: not found
forwarding local port 8000 to external port 1104
starting up user application
exec [sh -c “uvicorn main:app --reload”] error=exec: already started

I have tried chaining the port but that doesnt work either.

Any ideas on whats going on?

Screenshots, links, or other helpful context:

Try removing your run command from quotes, that might be causing the issue?

2 Likes

sometimes it is the simple things. thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.