Nim
Deployment of new FastAPI application results in crash Deploy
I've been trying to deploy my fast api application but this always results in a crash with the errors: /bin/bash: line 1: uvicorn: command not found
https://cdn.discordapp.com/attachments/1172621190515392552/1172621191421374524/image.png
I don't have any custom build command in the railway dashboard.
My procfile is as so: https://media.discordapp.net/attachments/1172621190515392552/1172621191706579034/image.png
And my nixpacks.toml is as so: https://cdn.discordapp.com/attachments/1172621190515392552/1172621192700629022/image.png
Here is what my pyproject.toml file looks like: https://cdn.discordapp.com/attachments/1172621190515392552/1172621192985837648/image.png
After crashing multiple times with the error: /bin/bash: line 1: uvicorn: command not found, I ran poetry install locally and added poetry.lock file to the repo. Weirdly, that made that error go away (although I'm unsure why).
Now I just get a different error as per below: https://cdn.discordapp.com/attachments/1172621190515392552/1172621193262673940/image.png
Thoughts on potential issues and how to resolve this?
50 replies