user_service icon indicating copy to clipboard operation
user_service copied to clipboard

Running via cli and using gunicorn

Open dotX12 opened this issue 2 years ago • 1 comments

Hello! Thanks for your project!

Is it possible to use proprietary launch via cli aka uvicorn "main:app" --port 66666 I don't feel like using await uvicorn.Server(...).serve() Also, could you add an example with running through gunicorn?

dotX12 avatar Apr 27 '23 22:04 dotX12

I would also like to know how it is possible to run this code from cli. I came across the fact that if you configure the application for uvicorn via get_event_loop, then a nested event loop will be used, and even if you use nest_asyncio, then aio-pika will not allow this to work normally.

MikhailGulkin avatar May 26 '23 21:05 MikhailGulkin