diff options
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x[-rw-r--r--] | docker-entrypoint.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 63bacb2..34b6867 100644..100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/sh +echo "Running migrations..." +./wait-for-it.sh db:5432 --timeout=30 --strict -- echo "Postgres is up" + cd /app python manage.py migrate python manage.py collectstatic --noinput |