feat: 切换邮箱认证并重构前后端启动与门禁
This commit is contained in:
@@ -6,15 +6,14 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
from core.config.initial.init_data import initialize_data
|
||||
from core.config.settings import config
|
||||
from core.logging import get_logger
|
||||
|
||||
logger = get_logger("core.runtime.cli")
|
||||
|
||||
|
||||
def _resolve_alembic_path() -> Path:
|
||||
project_root = Path(__file__).parents[3]
|
||||
alembic_path = project_root / "alembic" / "alembic.ini"
|
||||
project_root = Path(__file__).parents[4]
|
||||
alembic_path = project_root / "backend" / "alembic" / "alembic.ini"
|
||||
if not alembic_path.exists():
|
||||
raise FileNotFoundError(f"Alembic config not found at {alembic_path}")
|
||||
return alembic_path
|
||||
|
||||
Reference in New Issue
Block a user