mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #13670 from fosterseth/wait_for_pg
docker-compose wait for pg to be ready
This commit is contained in:
commit
a97c1b46c0
@ -14,6 +14,10 @@ make awx-link
|
||||
make version_file
|
||||
|
||||
if [[ -n "$RUN_MIGRATIONS" ]]; then
|
||||
# wait for postgres to be ready
|
||||
while ! nc -z postgres 5432; do
|
||||
echo "Waiting for postgres to be ready to accept connections"; sleep 1;
|
||||
done;
|
||||
make migrate
|
||||
else
|
||||
wait-for-migrations
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user