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