diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index dbb51d2..ac34cc3 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -3,7 +3,7 @@ # ./wait-for-it.sh db:5432 --timeout=30 -- echo "DB is up" # Only run flask db init if migrations folder doesn't exist -if [ ! -d "migrations" ] && [ -z "$(ls -A migrations)" ]; then +if [ -d "migrations" ] && [ -z "$(ls -A migrations)" ]; then flask db init fi