#!/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