From 12593aafd6d755ff421e327a357bffa7c3594f21 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Sun, 10 Dec 2023 15:59:18 +0100 Subject: [PATCH] add optional find_location on startup --- docker-compose.yml | 2 ++ entrypoint.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e796364..504b80c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,6 +28,8 @@ services: env_file: .env environment: - RUN_MIGRATION=1 + - ASSIGN_LOCATIONS=1 + scraper: build: context: . diff --git a/entrypoint.sh b/entrypoint.sh index 300e048..7d6d1f0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,10 @@ if [ "$RUN_MIGRATION" != "false" ]; then ./manage.py migrate fi +if [ "$ASSING_LOCATIONS" != "false" ]; then + ./manage.py pa_find_locations +fi + # don't create an admin interface per default #./manage.py createsuperuser