mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 23:21:57 -06:00
Fix static asset fallback and seed default admin
This commit is contained in:
@@ -66,6 +66,10 @@ def bootstrap() -> EngineRuntime:
|
||||
else:
|
||||
logger.info("migrations-skipped")
|
||||
|
||||
with sqlite_connection.connection_scope(settings.database_path) as conn:
|
||||
sqlite_migrations.ensure_default_admin(conn)
|
||||
logger.info("default-admin-ensured")
|
||||
|
||||
app = create_app(settings, db_factory=db_factory)
|
||||
services = build_service_container(settings, db_factory=db_factory, logger=logger.getChild("services"))
|
||||
app.extensions["engine_services"] = services
|
||||
|
||||
Reference in New Issue
Block a user