summaryrefslogtreecommitdiffstats
path: root/external/run.sh
blob: 94490d757ccc5799b368e8746f2061bc014fa833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
)