From 5cc9981a4d731727a136a7a57e2d8ede2c2ae3a1 Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Tue, 8 Oct 2024 15:58:14 +0800 Subject: [PATCH] Fix LIGHTEN. Close #2723 (#2744) ### What problem does this PR solve? Fix LIGHTEN #2726 #2723 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): --------- Co-authored-by: Kevin Hu --- api/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/settings.py b/api/settings.py index 3f239f0eb..41dfbe91c 100644 --- a/api/settings.py +++ b/api/settings.py @@ -42,7 +42,7 @@ RAG_FLOW_SERVICE_NAME = "ragflow" SERVER_MODULE = "rag_flow_server.py" TEMP_DIRECTORY = os.path.join(get_project_base_directory(), "temp") RAG_FLOW_CONF_PATH = os.path.join(get_project_base_directory(), "conf") -LIGHTEN = os.environ.get('LIGHTEN') +LIGHTEN = int(os.environ.get('LIGHTEN', "0")) SUBPROCESS_STD_LOG_NAME = "std.log"