From 685bbfc9f89d8bb6431f8a47953c1f3962cc7447 Mon Sep 17 00:00:00 2001 From: Paula Kammler Date: Wed, 13 Dec 2023 15:27:14 +0100 Subject: [PATCH] remove flush to not delete database one every restart --- docker-entrypoint.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 91bf4f3..08caa7e 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,12 +1,5 @@ #!/bin/bash -echo "Flush the manage.py command if any" - -while ! python manage.py flush --no-input 2>&1; do - echo "Flushing django manage command" - sleep 3 -done - echo "Migrate the database at startup of project" while ! python manage.py migrate 2>&1; do