You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

entrypoint.sh 342B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. /usr/sbin/nginx
  3. export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
  4. PY=python3
  5. if [[ -z "$WS" || $WS -lt 1 ]]; then
  6. WS=1
  7. fi
  8. function task_exe(){
  9. while [ 1 -eq 1 ];do
  10. $PY rag/svr/task_executor.py ;
  11. done
  12. }
  13. for ((i=0;i<WS;i++))
  14. do
  15. task_exe &
  16. done
  17. while [ 1 -eq 1 ];do
  18. $PY api/ragflow_server.py
  19. done
  20. wait;