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:$PORTgunicorn "wsgi:app" --bind 0.0.0.0:$PORTEnvironment variables
Set in Render dashboard:
SECRET_KEYSECRET_KEYDATABASE_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 coffeeWas this page helpful?
Let us know how we did
