diff --git a/__pycache__/extensions.cpython-313.pyc b/__pycache__/extensions.cpython-313.pyc index 05104fc..0da873f 100644 Binary files a/__pycache__/extensions.cpython-313.pyc and b/__pycache__/extensions.cpython-313.pyc differ diff --git a/entrypoint.sh b/entrypoint.sh index 973c6ce..f4e5a2b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -52,4 +52,9 @@ init_admin() # Start the application echo "Starting application..." -exec gunicorn --worker-class sync -w 1 --bind 0.0.0.0:5000 app:app \ No newline at end of file +exec python3 -c " +from app import create_app +from extensions import socketio +app = create_app() +socketio.run(app, host='0.0.0.0', port=5000, debug=False, use_reloader=False) +" \ No newline at end of file diff --git a/extensions.py b/extensions.py index a965a67..1d73699 100644 --- a/extensions.py +++ b/extensions.py @@ -13,5 +13,9 @@ socketio = SocketIO( logger=True, engineio_logger=True, ping_timeout=60, - ping_interval=25 + ping_interval=25, + always_connect=True, + transports=['websocket', 'polling'], + allow_upgrades=True, + max_http_buffer_size=1e8 ) \ No newline at end of file