Added --noinput to collectstatic to prevent crash

This commit is contained in:
Keannu Bernasol 2023-09-20 04:34:41 +08:00
parent 1cc6b0a724
commit 3aacf66aaf

View file

@ -11,7 +11,7 @@ services:
- "8083:8000" # Expose port 8083 for the web server - "8083:8000" # Expose port 8083 for the web server
environment: environment:
- PYTHONBUFFERED=1 - PYTHONBUFFERED=1
command: ["sh", "-c", "python stude/manage.py collectstatic && python stude/manage.py makemigrations && python stude/manage.py custom_migrate && python stude/manage.py runserver"] command: ["sh", "-c", "python stude/manage.py collectstatic --noinput && python stude/manage.py makemigrations && python stude/manage.py custom_migrate && python stude/manage.py runserver"]
volumes: volumes:
- .:/code # For hotreloading - .:/code # For hotreloading
depends_on: depends_on: