新增 alembic 管理数据库架构

This commit is contained in:
veoco
2022-12-13 21:03:15 +08:00
parent 2d7331269c
commit 8ffddd5870
9 changed files with 263 additions and 5 deletions
+1 -1
View File
@@ -160,4 +160,4 @@ async def share(background_tasks: BackgroundTasks, text: str = Form(default=None
if __name__ == '__main__':
import uvicorn
uvicorn.run('main:app', host='0.0.0.0', port=settings.PORT, debug=settings.DEBUG)
uvicorn.run('main:app', host='0.0.0.0', port=settings.PORT, reload=settings.DEBUG)