summaryrefslogtreecommitdiffstats
path: root/external/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'external/run.sh')
-rwxr-xr-xexternal/run.sh14
1 files changed, 14 insertions, 0 deletions
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
+)