fix(docker:single): procrastinate starts before django

This commit is contained in:
Herculino Trotta
2025-02-05 10:52:21 -03:00
parent 80edf557cb
commit 6c17b3babb
4 changed files with 27 additions and 0 deletions

View File

@@ -4,8 +4,13 @@ set -o errexit
set -o pipefail
set -o nounset
# Remove flag file if it exists from previous run
rm -f /tmp/migrations_complete
python manage.py collectstatic --noinput
python manage.py migrate
# Create flag file to signal migrations are complete
touch /tmp/migrations_complete
exec gunicorn WYGIWYH.wsgi:application --bind 0.0.0.0:8000 --timeout 600