A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Skip running system checks before migrate, then run them directly after instead
Trenton H554bba839e53
diff --git a/docker/docker-prepare.sh b/docker/docker-prepare.shindex c3a01ec8d..e7203fd8d 100755--- a/docker/docker-prepare.sh+++ b/docker/docker-prepare.sh@@ -20,7 +20,6 @@ wait_for_postgres() {exit 1elseecho "Attempt $attempt_num failed! Trying again in 5 seconds..."-fiattempt_num=$(("$attempt_num" + 1))@@ -67,10 +66,16 @@ migrations() {# of the current container starts.flock 200echo "Apply database migrations..."- python3 manage.py migrate+ python3 manage.py migrate --skip-checks --no-input) 200>"${DATA_DIR}/migration_lock"}+django_checks() {+ # Explicitly run the Django system checks+ echo "Running Django checks"+ python3 manage.py check+}+search_index() {local -r index_version=1@@ -100,6 +105,8 @@ do_work() {migrations+ django_checks+search_indexsuperuser