Skip to content

Commit

Permalink
add optional find_location on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Dec 10, 2023
1 parent 24ac08c commit bebc396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
env_file: .env
environment:
- RUN_MIGRATION=1
- ASSIGN_LOCATIONS=1

scraper:
build:
context: .
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bebc396

Please sign in to comment.