From 80cb85b84598ad13171630bfab1fca5392834d52 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Fri, 26 Sep 2025 15:18:10 +0800 Subject: [PATCH] fix docker file websocket mode --- api/docker/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh index ac8fc7008f..05ad1d575b 100755 --- a/api/docker/entrypoint.sh +++ b/api/docker/entrypoint.sh @@ -38,8 +38,9 @@ elif [[ "${MODE}" == "beat" ]]; then exec celery -A app.celery beat --loglevel ${LOG_LEVEL:-INFO} else if [[ "${DEBUG}" == "true" ]]; then - # TODO: add socketio support - exec flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=${DIFY_PORT:-5001} --debug + export HOST=${DIFY_BIND_ADDRESS:-0.0.0.0} + export PORT=${DIFY_PORT:-5001} + exec python -m app else exec gunicorn \ --bind "${DIFY_BIND_ADDRESS:-0.0.0.0}:${DIFY_PORT:-5001}" \