From 712cf675063f20b0050aa327aa7021a1f7c968a4 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:35:37 +0800 Subject: [PATCH] Add File --- backend/scripts/prestart.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backend/scripts/prestart.sh diff --git a/backend/scripts/prestart.sh b/backend/scripts/prestart.sh new file mode 100644 index 0000000..1b395d5 --- /dev/null +++ b/backend/scripts/prestart.sh @@ -0,0 +1,13 @@ +#! /usr/bin/env bash + +set -e +set -x + +# Let the DB start +python app/backend_pre_start.py + +# Run migrations +alembic upgrade head + +# Create initial data in DB +python app/initial_data.py