mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-19 07:03:37 +00:00
13 lines
278 B
Bash
13 lines
278 B
Bash
![]() |
#!/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
|