From 9c3d5c48694db1018d50aa85acad434f47e5ed0b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 13 Dec 2018 00:05:49 +0100 Subject: Initial import --- external/run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 external/run.sh (limited to 'external/run.sh') diff --git a/external/run.sh b/external/run.sh new file mode 100755 index 0000000..94490d7 --- /dev/null +++ b/external/run.sh @@ -0,0 +1,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 +) -- cgit v1.2.3