From 1c5b8e22987fc4596a6313e82385026dad174a7e Mon Sep 17 00:00:00 2001 From: cato447 Date: Tue, 13 May 2025 22:16:55 +0200 Subject: [PATCH] fixed deployment --- app/__init__.py | 2 +- run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 1bcb722..f832b58 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -4,7 +4,7 @@ from .models import db from .utils import init_password_generator, init_serializer from .auth import init_auth -socketio = SocketIO() +socketio = SocketIO(async_mode='eventlet', cors_allowed_origins="*") def create_app(): app = Flask(__name__, static_folder='static', static_url_path='/static') diff --git a/run.py b/run.py index 2796ef2..c870699 100644 --- a/run.py +++ b/run.py @@ -3,4 +3,4 @@ from app import create_app, socketio app = create_app() if __name__ == '__main__': - socketio.run(app, port=5002, debug=True) + socketio.run(app)