i hope it works config for nginx media files

This commit is contained in:
Parsa Nazer
2025-01-27 18:46:54 +03:30
parent 7a0478dcde
commit 283ff74be3
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
CMD ["sh", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"]
CMD ["sh", "-c", "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic && python manage.py runserver 0.0.0.0:8000"]