Skip to content

Commit

Permalink
working through django app
Browse files Browse the repository at this point in the history
  • Loading branch information
cmatKhan committed Mar 12, 2024
1 parent d0373fb commit 125cad4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions sbatch_singularity_deployment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

./singularity_local.sh \
-p ../yeastregulatorydb_sifs/yeastregulatorydb_production_postgres.sif \
-r ../yeastregulatorydb_sifs/yeastregulatorydb_local_redis.sif \
-d ../yeastregulatorydb_sifs/yeastregulatorydb_local_django.sif \
-o ../yeastregulatorydb_sifs/yeastregulatorydb_local_docs.sif \
-g ./postgres_data \
-b ./backup \
-v postgres_run \
-t 3 \
-s postgres,redis,django
2 changes: 1 addition & 1 deletion singularity_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ start_service() {
django)
singularity exec --bind .:/app \
--env-file ./.envs/.local/.concat_env_files \
$django_sif bash -c 'cd /app && /start' &> django_log.txt &
$django_sif bash -c '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 125cad4

Please sign in to comment.