Initial commit
This commit is contained in:
14
entrypoint.sh
Executable file
14
entrypoint.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user