forked from Dongjiaqi/reposync
部署调整
This commit is contained in:
parent
0c05c8d1a1
commit
2bfb9186a8
|
@ -0,0 +1 @@
|
|||
main.py
|
2
main.py
2
main.py
|
@ -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
|
||||
|
|
|
@ -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', ''),
|
||||
|
|
Loading…
Reference in New Issue