Watch: Host my Python API on Render | Vovy

Watch Vovy do it on a Mac: "Deploy my FastAPI app to Render and keep it from sleeping". Deploy a FastAPI or Flask app to Render as a web service, set the build and start commands, and understand free tier sleep.

"Deploy my FastAPI app to Render and keep it from sleeping"

Deploy a FastAPI or Flask app to Render as a web service, set the build and start commands, and understand free tier sleep.

What happens in the video

  1. Check your requirements file: Render installs packages from requirements.txt. Vovy makes sure it lists everything your app imports, including uvicorn for FastAPI.
  2. Create a new Web Service: Vovy opens the Render dashboard, clicks New, then Web Service, and connects your GitHub repo. You sign in yourself if prompted.
  3. Set build and start commands: Vovy fills Build Command with pip install -r requirements.txt and Start Command with uvicorn main:app --host 0.0.0.0 --port $PORT, matching your file names.
  4. Pick a plan and deploy: Vovy explains Free versus paid in a card, asks which you want, then clicks Deploy Web Service and reads the logs as it builds.
  5. Test the live endpoint: Vovy opens your onrender.com URL and your /docs page, confirms a real response, and shows the URL in a card.
Read the step-by-step guide