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

View File

@@ -2,7 +2,9 @@ services:
web: web:
build: . build: .
working_dir: /app 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: volumes:
- .:/app - .:/app
ports: ports: