Files
confient/entrypoint.sh
2020-12-12 18:38:31 +01:00

15 lines
274 B
Bash
Executable File

#!/bin/sh
# wait until PG is ready
while ! pg_isready -q -h $POSTGRES_HOST -p 5432 -U $POSTGRES_USER
do
echo "$(date) - waiting for database to start"
sleep 1
done
# run migrations
./bin/confient eval Confient.Release.migrate
# start the app
./bin/confient start