mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-23 06:30:00 +08:00

### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
31 lines
529 B
Bash
Executable File
31 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# unset http proxy which maybe set by docker daemon
|
|
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
|
|
|
|
/usr/sbin/nginx
|
|
|
|
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
|
|
|
|
PY=python3
|
|
if [[ -z "$WS" || $WS -lt 1 ]]; then
|
|
WS=1
|
|
fi
|
|
|
|
function task_exe(){
|
|
while [ 1 -eq 1 ];do
|
|
$PY rag/svr/task_executor.py $1;
|
|
done
|
|
}
|
|
|
|
for ((i=0;i<WS;i++))
|
|
do
|
|
task_exe $i &
|
|
done
|
|
|
|
while [ 1 -eq 1 ];do
|
|
$PY api/ragflow_server.py
|
|
done
|
|
|
|
wait;
|