Replace bash based waiting with python based django-probes.

This commit is contained in:
Brian DeRocher 2023-09-20 09:45:26 -04:00
parent 0c9d9f630e
commit 204db34282
3 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,8 @@ set -eo pipefail
source /venv/bin/activate source /venv/bin/activate
# first wait for the database
umap wait_for_database
# then migrate the database # then migrate the database
umap migrate umap migrate
# then collect static files # then collect static files

View file

@ -36,6 +36,7 @@ dependencies = [
"django-agnocomplete==2.2.0", "django-agnocomplete==2.2.0",
"django-compressor==4.3.1", "django-compressor==4.3.1",
"django-environ==0.10.0", "django-environ==0.10.0",
"django-probes==1.7.0",
"Pillow==9.5.0", "Pillow==9.5.0",
"psycopg2==2.9.6", "psycopg2==2.9.6",
"requests==2.31.0", "requests==2.31.0",

View file

@ -117,6 +117,7 @@ INSTALLED_APPS = (
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.gis', 'django.contrib.gis',
'django_probes',
'umap', 'umap',
'compressor', 'compressor',
'social_django', 'social_django',