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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: populate app configs to system environment variables (#5590)
Bowen Liangd0fe56a98e6b
diff --git a/api/app.py b/api/app.pyindex 0ee80e5d1c3..2c9b59706b4 100644--- a/api/app.py+++ b/api/app.py@@ -82,6 +82,16 @@ def create_flask_app_with_configs() -> Flask:"""dify_app = DifyApp(__name__)dify_app.config.from_mapping(DifyConfig().model_dump())++ # populate configs into system environment variables+ for key, value in dify_app.config.items():+ if isinstance(value, str):+ os.environ[key] = value+ elif isinstance(value, int | float | bool):+ os.environ[key] = str(value)+ elif value is None:+ os.environ[key] = ''+return dify_app