修复docker环境异常
This commit is contained in:
@@ -34,7 +34,11 @@ class SharedSettings(BaseSettings):
|
||||
|
||||
class Config:
|
||||
case_sensitive = True
|
||||
# Docker 环境下不读 .env 文件,靠 docker-compose environment 注入
|
||||
# 本地开发时 .env 文件仍然生效
|
||||
env_file = ".env"
|
||||
env_file_encoding = "utf-8"
|
||||
extra = "ignore"
|
||||
|
||||
|
||||
shared_settings = SharedSettings()
|
||||
|
||||
Reference in New Issue
Block a user