feat(expenses): add transactional expense case events
This commit is contained in:
@@ -378,6 +378,12 @@ ensure_dependencies() {
|
||||
info "Server dependencies are ready."
|
||||
}
|
||||
|
||||
run_database_migrations() {
|
||||
info "Applying database migrations..."
|
||||
"$PYTHON_BIN" -m alembic -c "$SCRIPT_DIR/alembic.ini" upgrade head
|
||||
info "Database migrations are up to date."
|
||||
}
|
||||
|
||||
start_server() {
|
||||
info "Starting FastAPI server..."
|
||||
info "Access: http://$SERVER_HOST:$SERVER_PORT"
|
||||
@@ -402,6 +408,7 @@ case "$MODE" in
|
||||
;;
|
||||
start)
|
||||
ensure_dependencies
|
||||
run_database_migrations
|
||||
start_server
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user