mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-06 15:08:21 +00:00
12 lines
278 B
Bash
Executable file
12 lines
278 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -x
|
|
set -eo pipefail
|
|
|
|
until psql -h "localhost" -U "${DB_USER}" -p "${DB_PORT}" -d "postgres" -c '\q';
|
|
do
|
|
>&2 echo "Postgres is still unavailable - sleeping"
|
|
sleep 1
|
|
done
|
|
|
|
>&2 echo "Postgres is up and running on port ${DB_PORT}!"
|
|
sqlx database create
|