Skip to content

Instantly share code, notes, and snippets.

@ngetahun
Created June 10, 2020 07:17
Show Gist options
  • Save ngetahun/12aceb80d6a7fdcf15224d5bfbce1bf6 to your computer and use it in GitHub Desktop.
Save ngetahun/12aceb80d6a7fdcf15224d5bfbce1bf6 to your computer and use it in GitHub Desktop.
Gunicorn config to start a flask app with aiohttp in dev env
gunicorn 'wsgi:app' -b 127.0.0.1:5000 \
--name wsgi_app \
--workers 5 \
--worker-class aiohttp.GunicornWebWorker \
--access-logfile /dev/stdout
--enable-stdio-inheritance \
--log-level debug \
--reload \
--access-logformat '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"' \
--bind=unix:sock/wsgi_app.sock \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment