Run migrations on container start
This commit is contained in:
parent
ad894a30a1
commit
ca835a33b4
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ COPY --chown=website ./website ./website
|
||||||
|
|
||||||
RUN SECRET_KEY=none python manage.py collectstatic --noinput --clear -v3
|
RUN SECRET_KEY=none python manage.py collectstatic --noinput --clear -v3
|
||||||
|
|
||||||
CMD gunicorn -c etc/gunicorn.conf.py
|
CMD python manage.py migrate --noinput && gunicorn -c etc/gunicorn.conf.py
|
||||||
|
|
||||||
# Just dev stuff
|
# Just dev stuff
|
||||||
FROM production as dev
|
FROM production as dev
|
||||||
|
|
Loading…
Reference in a new issue