question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
tomchristiecommented, Apr 9, 2020

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

3reactions
fsecada01commented, Feb 11, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deployment - Uvicorn
The ASGI application should be specified in the form path.to.module:instance.path . When running locally, use --reload to turn on auto-reloading. The --reload ...
Read more >
What is the best way to stop Uvicorn server programmatically?
Raising an exception (or re-raising f_error) inside your except clause would terminate the current application unless there's another level ...
Read more >
The Ultimate FastAPI Tutorial Part 13 - Using Docker to ...
Part 13: Using Docker, Uvicorn and Gunicorn to Deploy Our App to Heroku ... script in the /app directory or other path specified,...
Read more >
fastapi unprocessable entity debug - Tripnologies
Select "Python" Run the debugger with the option "Python: Current File ... Вперед Debuggingimport uvicorn from fastapi import FastAPI app ...
Read more >
Create Blank Asgi Request | Psychiatrie Rivierenland
examples like heroku run asgi instantly right from your google search results. Spring application that uses Spring Data Redis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found