From 1d49f61aa879ad873866d83f1d3ac0f8434e7f3b Mon Sep 17 00:00:00 2001 From: chase mateusiak Date: Tue, 12 Mar 2024 15:52:19 -0500 Subject: [PATCH] debugging singularity_local.sh2 --- singularity_local.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/singularity_local.sh b/singularity_local.sh index d80d8d8..fc6d92d 100755 --- a/singularity_local.sh +++ b/singularity_local.sh @@ -35,12 +35,10 @@ start_service() { singularity exec $redis_sif redis-server &> redis_log.txt & check_service_ready "Redis" "redis-cli ping > /dev/null 2>&1" ;; - django) - singularity exec --bind .:/app \ - --env-file ./.envs/.local/.django \ - --env-file ./.envs/.local/.postgres \ - --env-file ./.envs/.local/.regulatory_data \ - $django_sif bash -c 'cd /app && /start' &> django_log.txt & + django) + singularity exec --bind .:/app $django_sif bash -c ' + export $(cat ./.envs/.local/.django ./.envs/.local/.postgres ./.envs/.local/.regulatory_data | grep -v "^#" | xargs) && + cd /app && /entrypoint /start' &> django_log.txt & check_service_ready "Django app" "curl -s http://localhost:8000 > /dev/null" ;; docs)