summaryrefslogtreecommitdiffstats
path: root/external/run.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-12-13 00:05:49 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-12-13 00:05:49 +0100
commit9c3d5c48694db1018d50aa85acad434f47e5ed0b (patch)
treebee24b887c12d1abaa4d942525a6c1d304dd200d /external/run.sh
downloadbiomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.gz
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.bz2
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.xz
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.zip
Initial import
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
+)