websocket fix
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
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)
|
||||
"
|
||||
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user