Skip to content

Commit

Permalink
Use manage.py instead of django-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jun 1, 2023
1 parent cb09ede commit 6780757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
command: [
"poetry", "run",
"--directory", "/app/django",
"django-admin",
"/app/django/src/manage.py",
"runserver", "0.0.0.0:8000"
]
# Log printing via Rich is enhanced by a TTY
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ fi
# Attempt to run migrations (will only work if `django-admin` is installed)
set +e
poetry install --directory /app/django --only main
poetry run --directory /app/django django-admin migrate
poetry run --directory /app/django django-admin loaddata lookups
poetry run --directory /app/django /app/django/src/manage.py migrate
poetry run --directory /app/django /app/django/src/manage.py loaddata lookups
set -e

exec "$@"

0 comments on commit 6780757

Please sign in to comment.