Skip to content

Commit

Permalink
small update to setup-database.sh CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Aug 30, 2024
1 parent 9d49c29 commit 0019038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -oe allexport
source .env

echo "PGHOST IS:"
echo $PGHOST

# Prepare Dialyzer if the project has Dialyxer set up
# if mix help dialyzer >/dev/null 2>&1
# then
Expand All @@ -13,7 +16,7 @@ source .env

# Wait for Postgres to become available.
until psql -h $PGHOST -U "$PGUSER" -c '\q' 2>/dev/null; do
>&2 echo "Postgres is unavailable - sleeping"
echo "Postgres is unavailable - sleeping"
sleep 1
done

Expand Down

0 comments on commit 0019038

Please sign in to comment.