tzangms/python-websocket-example

How to deploy with gunicorn + gevent.

Closed this issue · 0 comments

If Flask webapp which not include websocket.

app.run('0.0.0.0', port, debug=DEV_MODE)

then run with gunicorn.

gunicorn -w 4 -b 127.0.0.1:8000 runserver:app

How to run flask + websocket with gunicorn , same ?

And whether support multi-worker, now I use Socket.IO, but do not support worker num > 1.