Skip to content

Commit 36a9c58

Browse files
committed
bugfix: docker deploy
1 parent 5188ad4 commit 36a9c58

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ build
1818
dist
1919
package.sh
2020
local_config.json
21-
muagent
21+
muagent*

configs/model_config.py.example

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ try:
3838
cur_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
3939
with open(os.path.join(cur_dir, "local_config.json"), "r") as f:
4040
update_config = json.load(f)
41-
except:
41+
for k, v in update_config.items():
42+
os.environ[k] = v if isinstance(v, str) else json.dumps(v)
43+
except Exception as e:
4244
update_config = {}
4345

4446

examples/webui_config.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@
200200
"VLLM_MODEL_DICT": VLLM_MODEL_DICT,
201201
"DOCKER_SERVICE": DOCKER_SERVICE,
202202
"SANDBOX_DO_REMOTE": SANDBOX_DO_REMOTE,
203-
"FSCHAT_MODEL_WORKERS": FSCHAT_MODEL_WORKERS
203+
"FSCHAT_MODEL_WORKERS": FSCHAT_MODEL_WORKERS,
204+
# 非zdata则不需要关注
205+
"aes_secret_key": os.environ.get("aes_secret_key"),
206+
"visit_biz": os.environ.get("visit_biz"),
207+
"visit_biz_line": os.environ.get("visit_biz_line"),
208+
"visit_domain": os.environ.get("visit_domain"),
204209
}
205210

206211
with open(os.path.join(src_dir, "configs/local_config.json"), "w") as f:

0 commit comments

Comments
 (0)