mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
Small tweaks from reivew
This commit is contained in:
@@ -11,7 +11,7 @@ engine = create_engine(ConfigLoader.get_db_engine(), pool_pre_ping=True)
|
||||
session = sessionmaker(bind=engine, expire_on_commit=False)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@pytest.fixture(scope="session")
|
||||
def setup_database():
|
||||
alembic.config.main(argv=["upgrade", "head"])
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ def startup() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Run migrations
|
||||
alembic.config.main(argv=["upgrade", "head"])
|
||||
|
||||
# Run application
|
||||
uvicorn.run("main:app", host=DEV_HOST, port=DEV_PORT, reload=True)
|
||||
# uvicorn.run("main:app", host=DEV_HOST, port=DEV_PORT, reload=False, workers=2)
|
||||
|
||||
Reference in New Issue
Block a user