Add docker
This commit is contained in:
13
services/db/migrations/wait-for-database.sh
Executable file
13
services/db/migrations/wait-for-database.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# wait-for-postgres.sh
|
||||
|
||||
set -e
|
||||
|
||||
until tern status -c tern.docker.conf; do
|
||||
>&2 echo "Postgres is unavailable - sleeping"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
>&2 echo "Postgres is up - executing command"
|
||||
|
||||
tern migrate -c tern.docker.conf
|
Reference in New Issue
Block a user