#!/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 flask db init flask db migrate -m "Autogenerated migration" flask db upgrade python app.py