部署调整

This commit is contained in:
xmy 2024-06-27 16:59:52 +08:00
parent 0c05c8d1a1
commit 2bfb9186a8
3 changed files with 5 additions and 4 deletions

1
.idea/.name Normal file
View File

@ -0,0 +1 @@
main.py

View File

@ -25,7 +25,7 @@ app.include_router(LOG)
app.include_router(AUTH)
app.include_router(SYNC_CONFIG)
# app.mount("/", StaticFiles(directory="web/dist"), name="static")
app.mount("/", StaticFiles(directory="web"), name="static")
if __name__ == '__main__':
# workers 参数仅在命令行使用uvicorn启动时有效 或使用环境变量 WEB_CONCURRENCY

View File

@ -35,9 +35,9 @@ DB = {
'test_env': {
'host': getenv('CEROBOT_MYSQL_HOST', 'localhost'),
'port': getenv('CEROBOT_MYSQL_PORT', 3306, int),
'user': getenv('CEROBOT_MYSQL_USER', 'root'),
'passwd': getenv('CEROBOT_MYSQL_PWD', '185102xmy'),
'dbname': getenv('CEROBOT_MYSQL_DB', 'reposyncer3'),
'user': getenv('CEROBOT_MYSQL_USER', 'rtsw'),
'passwd': getenv('CEROBOT_MYSQL_PWD', '123456'),
'dbname': getenv('CEROBOT_MYSQL_DB', 'reposyncer'),
},
'local': {
'host': getenv('CEROBOT_MYSQL_HOST', ''),