Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yezyilomo opened this issue Jan 10, 2020 · 6 comments

Comments

@yezyilomo
Copy link
Contributor

yezyilomo commented Jan 10, 2020

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.

@fsecada01
Copy link

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

@euri10
Copy link
Member

euri10 commented Feb 11, 2020

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

@fsecada01
Copy link

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

@anandandy139
Copy link

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

@tomchristie
Copy link
Member

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

@PaulShiLi
Copy link

Following this question, is it possible to also have an app-dir kwarg for uvicorn.Config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants