Skip to content

Commit

Permalink
remove flush to not delete database one every restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Kammler committed Dec 13, 2023
1 parent 18023d5 commit 685bbfc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 685bbfc

Please sign in to comment.