Created
June 10, 2020 07:17
-
-
Save ngetahun/12aceb80d6a7fdcf15224d5bfbce1bf6 to your computer and use it in GitHub Desktop.
Gunicorn config to start a flask app with aiohttp in dev env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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