mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-21 16:21:32 +02:00
fix(docker:single): procrastinate starts before django
This commit is contained in:
@@ -4,4 +4,12 @@ set -o errexit
|
||||
set -o nounset
|
||||
|
||||
|
||||
# Wait for migrations to complete
|
||||
until [ -f /tmp/migrations_complete ]; do
|
||||
echo "Procastinate is waiting for web app to start..."
|
||||
sleep 2
|
||||
done
|
||||
|
||||
rm -f /tmp/migrations_complete
|
||||
|
||||
exec watchfiles --filter python "python manage.py procrastinate worker"
|
||||
|
||||
Reference in New Issue
Block a user