~sgeisenh/streamnotify

25878a8b972efec5ff9cbc0f2281f3932af876e0 — Samuel Eisenhandler 1 year, 5 months ago fc76a6a main
Use gevent instead of sync workers
3 files changed, 7 insertions(+), 2 deletions(-)

M Procfile
M requirements.txt
M server.py
M Procfile => Procfile +1 -2
@@ 1,2 1,1 @@
# Modify this Procfile to fit your needs
web: gunicorn server:app
web: gunicorn --worker-class gevent server:app

M requirements.txt => requirements.txt +1 -0
@@ 10,3 10,4 @@ MarkupSafe==2.1.2
requests==2.28.2
urllib3==1.26.14
Werkzeug==2.2.2
gevent==22.10.2

M server.py => server.py +5 -0
@@ 1,3 1,8 @@
# We have to patch this early for async functionality.
from gevent import monkey

monkey.patch_all()

import hmac
import os
from logging.config import dictConfig