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

migrate database

parent 247bb900
No related branches found
No related tags found
No related merge requests found
Pipeline #33369 failed
...@@ -13,8 +13,8 @@ RUN \ ...@@ -13,8 +13,8 @@ RUN \
apk --purge del .build-deps apk --purge del .build-deps
# 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 python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput && \ RUN 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
# run gunicorn # run gunicorn
CMD exec gunicorn ldvspec.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4 CMD exec gunicorn ldvspec.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4
......
...@@ -45,9 +45,9 @@ services: ...@@ -45,9 +45,9 @@ services:
- ldv-spec-db - ldv-spec-db
env_file: env_file:
- $HOME/shared/ldvspec.env - $HOME/shared/ldvspec.env
command: > # command: >
sh -c "python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput && # sh -c "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"
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