Answer the question
In order to leave comments, you need to log in
How to run Flask + socketio + gunicorn?
Good afternoon. Tell me, please, one moment.
Simplified folder structure:
app/
__init__.py
app.py
from app import app
from app import socketio
socketio.run(app, "127.0.0.1", 8000)
from flask import Flask
from flask_socketio import SocketIO
app = Flask(__name__)
app.config.from_object('config.Config')
async_mode = None
socketio = SocketIO(app, async_mode=async_mode, logger=True, engineio_logger=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question