How do I deploy a Python app using uv
? I don’t expect render to support uv
, but is there a way to deploy it as requirements.txt
?
You can run uv pip freeze > requirements.txt
before you commit your changes and use the default render build command that does pip install -r requirements.txt
. At least that is what we are doing.
Faced the same problem and couldn’t figure out how to specify the correct path to uv .venv
==> Running ‘uvicorn app.main:app --host 0.0.0.0 --port $PORT’
Jan 18 06:36:28 PMbash: line 1: /opt/render/project/src/.venv/bin/uvicorn: cannot execute: required file not found
Running ‘uvicorn app.main:app --host 0.0.0.0 --port $PORT’
Jan 18 06:48:30 PMbash: line 1: uvicorn: command not found
Don’t even need to support it - just documentation on how to setup it. With the paid plan you have access to the system bash and can debug it - not from the free plan tho
I would also really love to see native uv support. Please make it happen!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.