Skip to content
Snippets Groups Projects
Commit d1d43218 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

migrate database

parent 3c069f55
No related branches found
No related tags found
No related merge requests found
Pipeline #33367 passed
...@@ -14,7 +14,6 @@ RUN \ ...@@ -14,7 +14,6 @@ RUN \
# collect the static files and make sure that the latest database migrations are done # collect the static files and make sure that the latest database migrations are done
CMD \ CMD \
cd /src && \
python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput && \ python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput && \
python manage.py migrate --settings=ldvspec.settings.docker_sdc python manage.py migrate --settings=ldvspec.settings.docker_sdc
......
...@@ -45,7 +45,9 @@ services: ...@@ -45,7 +45,9 @@ services:
- ldv-spec-db - ldv-spec-db
env_file: env_file:
- $HOME/shared/ldvspec.env - $HOME/shared/ldvspec.env
command: docker-entrypoint.sh command: >
sh -c "python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput &&
python manage.py migrate --settings=ldvspec.settings.docker_sdc"
restart: always restart: always
volumes: volumes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment