mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
33ebc77f10
Complete documentation rewrite: - Clean, code-first index page (no badges, no testimonials) - Rewritten quickstart: request/response reference, templates, background tasks - Rewritten feature tour: method filtering, lifespan, file serving, error handling, hooks, WebSockets, GraphQL, OpenAPI, CORS, sessions - Simplified testing and deployment guides - Stripped conf.py to essential extensions only Removed cruft: - 14MB of paid font files (Mercury, Operator Mono) - Google Analytics (deprecated Universal Analytics) - UserVoice widget - Konami code easter egg - Algolia DocSearch (not configured) - Twitter widgets - Unused Sphinx extensions (mathjax, ifconfig, coverage, doctest, opengraph) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
517 B
ReStructuredText
32 lines
517 B
ReStructuredText
Deployment
|
|
==========
|
|
|
|
Docker
|
|
------
|
|
|
|
::
|
|
|
|
FROM python:3.13-slim
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN pip install responder
|
|
ENV PORT=80
|
|
EXPOSE 80
|
|
CMD ["python", "api.py"]
|
|
|
|
|
|
Cloud Platforms
|
|
---------------
|
|
|
|
Responder honors the ``PORT`` environment variable automatically.
|
|
It works with any platform that sets ``PORT``: Fly.io, Railway, Render,
|
|
Google Cloud Run, etc.
|
|
|
|
|
|
Uvicorn Directly
|
|
----------------
|
|
|
|
For more control, run with uvicorn::
|
|
|
|
uvicorn api:api --host 0.0.0.0 --port 8000 --workers 4
|