Run migrations before starting dev server #6

Merged
mark merged 1 commits from fix/run-migrations-on-startup into main 2026-02-28 19:13:58 +00:00
Showing only changes of commit b73a2d4d72 - Show all commits

View File

@@ -2,7 +2,9 @@ services:
web:
build: .
working_dir: /app
command: python manage.py runserver 0.0.0.0:8000
command: >
sh -c "python manage.py migrate --noinput &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/app
ports: