entrypoint
This commit is contained in:
parent
8f6c0792da
commit
115d921b19
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user