Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: (#10437 followup) fix conditions with DEBUG config (#10438)

Bowen Liang0e8ab0588f0c
diff --git a/api/app.py b/api/app.py
index 93774bd75df..60cd622ef4d 100644
--- a/api/app.py
+++ b/api/app.py
@@ -2,7 +2,7 @@ import os
from configs import dify_config
-if dify_config.DEBUG:
+if not dify_config.DEBUG:
from gevent import monkey
monkey.patch_all()
diff --git a/api/app_factory.py b/api/app_factory.py
index f53cf14f4b5..60a584798b6 100644
--- a/api/app_factory.py
+++ b/api/app_factory.py
@@ -2,7 +2,7 @@ import os
from configs import dify_config
-if dify_config.DEBUG:
+if not dify_config.DEBUG:
from gevent import monkey
monkey.patch_all()