Merge pull request 'Run migrations before starting dev server' (#6) from fix/run-migrations-on-startup into main
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user