Uvicorn: [QUESTION]How to specify application path when running uvicorn outside of the application directory.

Created on 10 Jan 2020  路  5Comments  路  Source: encode/uvicorn

I thought there would be an option like --chdir in Gunicorn but I didn't find one on the documentation, at first I thought that's what --root-path option is used for, turns out I was wrong.

Most helpful comment

Would also like to know if this is a thing. This would make deployments much easier.

All 5 comments

Would also like to know if this is a thing. This would make deployments much easier.

Using PYTHONPATH maybe, if I understood correctly what you want?

No, something more like --chdir backend\src for deploying uvicorn

I am also looking for something like this. Could you help ?

I think we could probably accept a pull request adding that, yup.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomchristie picture tomchristie  路  6Comments

joshua-s picture joshua-s  路  5Comments

itayperl picture itayperl  路  3Comments

HenrikOssipoff picture HenrikOssipoff  路  5Comments

Gyllsdorff picture Gyllsdorff  路  6Comments