diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e036338f..0151897c 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -3,6 +3,8 @@ set -eo pipefail source /venv/bin/activate +# first wait for the database +umap wait_for_database # then migrate the database umap migrate # then collect static files diff --git a/pyproject.toml b/pyproject.toml index 9c7177b1..8a99f166 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ dependencies = [ "django-agnocomplete==2.2.0", "django-compressor==4.3.1", "django-environ==0.10.0", + "django-probes==1.7.0", "Pillow==9.5.0", "psycopg2==2.9.6", "requests==2.31.0", diff --git a/umap/settings/base.py b/umap/settings/base.py index 6c1a84d7..a98413f5 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -117,6 +117,7 @@ INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.gis', + 'django_probes', 'umap', 'compressor', 'social_django',