more
This commit is contained in:
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user