ragserver/start.sh

9 lines
289 B
Bash
Executable File

#!/bin/bash
cdir=$(cd "$(dirname "$0")"; pwd)
source py3/bin/activate
cd $cdir
export PYTHONPATH=$cdir:$cdir/pkgs/rag-pipeline:$PYTHONPATH
nohup py3/bin/python app/ragserver.py > logs/ragserver_stdout.log 2>&1 &
echo $! > ragserver.pid
echo "RAG Server started (pid $(cat ragserver.pid))"