Run migrate automatically on container start
This commit is contained in:
parent
aa0b8ee6f9
commit
df601714ec
1 changed files with 1 additions and 1 deletions
|
|
@ -15,4 +15,4 @@ RUN python manage.py collectstatic --noinput
|
|||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "diora.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]
|
||||
CMD ["sh", "-c", "python manage.py migrate --noinput && gunicorn diora.wsgi:application --bind 0.0.0.0:8000 --workers 2"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue