This commit is contained in:
2025-05-27 04:23:51 -05:00
parent f4bcf72b9b
commit 381f78b4e2
12 changed files with 282 additions and 79 deletions

View File

@ -20,11 +20,12 @@ echo "[✔] Running migrations"
flask db migrate -m "auto"
flask db upgrade
# Seed database if enabled
if [ "$ENABLE_DB_SEEDING" = "true" ]; then
# Seed database if enabled (accept “1” or “true”)
if [ "$ENABLE_DB_SEEDING" = "true" ] || [ "$ENABLE_DB_SEEDING" = "1" ]; then
echo "[🌱] Seeding Data"
flask preload-data
fi
# Start the main process
exec "$@"