Skip to content

Commit

Permalink
debugging singularity_local.sh2
Browse files Browse the repository at this point in the history
  • Loading branch information
cmatKhan committed Mar 12, 2024
1 parent 86b237e commit 1d49f61
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions singularity_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d49f61

Please sign in to comment.