mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 11:19:58 +00:00
12 lines
288 B
Bash
12 lines
288 B
Bash
#!/bin/bash
|
|
# Wait for DB to be ready (optional step)
|
|
# ./wait-for-it.sh db:5432 --timeout=30 -- echo "DB is up"
|
|
|
|
# Only run flask db init if migrations folder doesn't exist
|
|
if [ ! -d "migrations" ]; then
|
|
flask db init
|
|
fi
|
|
|
|
flask db migrate -m "Autogenerated migration"
|
|
flask db upgrade
|