Skip to content

Deploying to Render

Render is a popular platform for deploying web services.

What you typically need

  • a requirements.txtrequirements.txt
  • a WSGI entrypoint (wsgi.pywsgi.py)
  • a start command (Gunicorn)

Typical start command

gunicorn "wsgi:app" --bind 0.0.0.0:$PORT
gunicorn "wsgi:app" --bind 0.0.0.0:$PORT

Environment variables

Set in Render dashboard:

  • SECRET_KEYSECRET_KEY
  • DATABASE_URLDATABASE_URL (if using managed DB)

Static files

If your app serves lots of static assets, consider:

  • platform static hosting
  • or put a CDN in front

Deployment sanity checklist

  • debug is off
  • migrations run
  • logs show requests responding
  • health endpoint returns 200

If this helped you, consider buying me a coffee ☕

Buy me a coffee

Was this page helpful?

Let us know how we did