diff --git a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh index ddf096aa..4845e343 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh +++ b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh @@ -34,12 +34,10 @@ sys.exit(0) END } - until postgres_ready; do - >&2 echo 'PostgreSQL is unavailable (sleeping)...' + >&2 echo 'Waiting for PostgreSQL to become available...' sleep 1 done - ->&2 echo 'PostgreSQL is up - continuing...' +>&2 echo 'PostgreSQL is available' exec "$@"