mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Merge pull request #13670 from fosterseth/wait_for_pg
docker-compose wait for pg to be ready
This commit is contained in:
@@ -14,6 +14,10 @@ make awx-link
|
|||||||
make version_file
|
make version_file
|
||||||
|
|
||||||
if [[ -n "$RUN_MIGRATIONS" ]]; then
|
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
|
make migrate
|
||||||
else
|
else
|
||||||
wait-for-migrations
|
wait-for-migrations
|
||||||
|
|||||||
Reference in New Issue
Block a user