How to Restart FastAPI Server with Bash Script

Ng Wai Foong
Level Up Coding
Published in
6 min readNov 12, 2020

--

One simple trick to make your life easier

Photo by Sai Kiran Anagani on Unsplash

By reading this piece, you will learn to create a bash script that automates the restart process for your FastAPI server (production). As you have known, you can restart the server by using the reload argument during development.

uvicorn myapp:app --reload

--

--

Senior AI Engineer@Yoozoo | Content Writer #NLP #datascience #programming #machinelearning | Linkedin: https://www.linkedin.com/in/wai-foong-ng-694619185/