path=$(cat ../.env | grep -oP 'BIOMEDISA_HOST_SRC_PATH=\K.*') ( cd "$path" || exit -1 export PYTHONPATH=$path:${PYTHONPATH} export DJANGO_SETTINGS_MODULE=biomedisa.settings export BIOMEDISA_SRC_PATH=$path export MYSQL_HOST="127.0.0.1" # localhost is treated as socket export REDIS_HOST="localhost" export PATH="$PATH:/usr/lib64/openmpi/bin/" LD_PRELOAD=/usr/lib64/openmpi/lib/libmpi.so rq worker -u http://localhost rq worker first_queue )