entrypoint

This commit is contained in:
Irwan Cahyono 2025-08-07 11:09:53 +07:00
parent 8f6c0792da
commit 115d921b19

View File

@ -2,11 +2,12 @@
# Tunggu sampai DB siap (gunakan jika perlu) # Tunggu sampai DB siap (gunakan jika perlu)
# echo "Waiting for postgres..." # echo "Waiting for postgres..."
# while ! nc -z db 5432; do while ! nc -z db 5432; do
# sleep 0.1 sleep 0.1
# done done
# echo "PostgreSQL started" echo "PostgreSQL started"
python manage.py makemigrations --noinput
python manage.py migrate --noinput python manage.py migrate --noinput
python manage.py collectstatic --noinput python manage.py collectstatic --noinput