entrypoint
This commit is contained in:
parent
8f6c0792da
commit
115d921b19
@ -2,11 +2,12 @@
|
||||
|
||||
# Tunggu sampai DB siap (gunakan jika perlu)
|
||||
# echo "Waiting for postgres..."
|
||||
# while ! nc -z db 5432; do
|
||||
# sleep 0.1
|
||||
# done
|
||||
# echo "PostgreSQL started"
|
||||
while ! nc -z db 5432; do
|
||||
sleep 0.1
|
||||
done
|
||||
echo "PostgreSQL started"
|
||||
|
||||
python manage.py makemigrations --noinput
|
||||
python manage.py migrate --noinput
|
||||
python manage.py collectstatic --noinput
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user