Docker compose konfiguratsiyasini yangilandi va xizmatlar uchun yangi buyruqlar qo'shildi.
This commit is contained in:
11
order/resources/scripts/entrypoint-server.sh
Normal file
11
order/resources/scripts/entrypoint-server.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
python3 manage.py collectstatic --noinput
|
||||
python3 manage.py migrate --noinput
|
||||
|
||||
gunicorn config.wsgi:application -b 0.0.0.0:8000 --workers $(($(nproc) * 2 + 1))
|
||||
|
||||
|
||||
|
||||
exit $?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user