fixed deployment

This commit is contained in:
2025-05-13 22:16:55 +02:00
parent 4d9ffe1608
commit 1c5b8e2298
2 changed files with 2 additions and 2 deletions

View File

@@ -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')

2
run.py
View File

@@ -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)