Start Uvicorn on boot

Good day,

I have a Ubuntu server running Uvicorn with FastAPI. I have everything set up including domain and SSL certificate for the domain. When I start Uvicorn, everything is working as it should.

But, I am unable to get Uvicorn started on boot or as a service :frowning:

Is anybody able to help me with this?

Found a solution, maybe not the best but it works.

I run Uvicorn using a process manager like Supervisor. Following these instructions worked for me:

You might want to run a proxy in front of Uvicorn, like Nginx. This is helpful for serving static files, and just generally hardening the security of your server.