You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
304 B
15 lines
304 B
#!/bin/sh
|
|
|
|
# Wait for PostgreSQL container to spin up.
|
|
while ! curl http://db:5432/ 2>&1 | grep '52'
|
|
do
|
|
echo "Waiting for PostgreSQL to start."
|
|
sleep 1
|
|
done
|
|
|
|
# Upgrade DB schema to version used by application. This also initializes table, if they aren't already created.
|
|
flask db upgrade
|
|
|
|
|
|
exec "$@"
|